macro_rules! test_with_default_config {
($test:expr) => { ... };
}Expand description
All twelve #[macro_export] configuration test macros, re-exported from
the subx-core crate.
#[macro_export] places a macro at its defining crate’s root, so
pub use subx_core::config; above cannot reach them; they are listed
individually. Legacy re-exports for consumers that have not yet migrated
to subx_core:: paths, and will be removed once they have.
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_core::{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");
});