How is dependency injection/mocking done at RisingWave for testing?
Yue is asking about how dependency injection and mocking are typically done at RisingWave for testing, specifically in the context of testing a feature in Rust.
In Rust at RisingWave, we typically don't do dependency injection.
For testing features like the one in the provided PR, we can use SQLLogictest to simulate the required environment.
Test cases can be run in the PR body and created as .slt files.
Refer to the developer docs for guidance on writing such tests.
Complex setups for SQL test cases are not done directly in Rust unit tests or integration tests due to the complexity of setting up the full environment in a single process.