macro_rules! test_with_sync_config {
($threshold:expr, $max_offset:expr, $test:expr) => { ... };
}
Expand description
Run a test with specific sync configuration.
This macro creates a test configuration service with the specified synchronization parameters, then runs the test closure.
§Examples
ⓘ
use subx_cli::{test_with_sync_config, config::ConfigService};
test_with_sync_config!(0.8, 45.0, |config_service: &dyn ConfigService| {
let config = config_service.get_config().unwrap();
assert_eq!(config.sync.correlation_threshold, 0.8);
assert_eq!(config.sync.max_offset_seconds, 45.0);
});