macro_rules! create_test_config_service {
($service_name:ident, $config_builder:expr) => { ... };
}Expand description
Create a temporary test configuration service for use in test functions.
This macro creates a configuration service variable that can be used throughout a test function.
§Examples
ⓘ
use subx_cli::create_test_config_service;
fn my_test() {
create_test_config_service!(service, TestConfigBuilder::new().with_ai_provider("openai"));
let config = service.get_config().unwrap();
assert_eq!(config.ai.provider, "openai");
}