macro_rules! test_with_default_config {
($test:expr) => { ... };
}
Expand description
Run a test with the default configuration.
This macro creates a test configuration service with default settings and runs the provided test closure with it.
§Examples
ⓘ
use subx_cli::{test_with_default_config, config::ConfigService};
test_with_default_config!(|config_service: &dyn ConfigService| {
let config = config_service.get_config().unwrap();
assert_eq!(config.ai.provider, "openai");
});