macro_rules! create_production_config_service_with_empty_env {
($service_name:ident) => { ... };
}Expand description
Create a ProductionConfigService with empty environment variables for testing.
This macro creates a ProductionConfigService without any environment variables, used for testing default behavior.
§Arguments
$service_name- Service variable name
§Examples
ⓘ
use subx_cli::create_production_config_service_with_empty_env;
fn my_test() {
create_production_config_service_with_empty_env!(service);
let config = service.get_config().unwrap();
assert_eq!(config.ai.api_key, None); // Expected no API key
}