macro_rules! test_with_parallel_config {
($max_jobs:expr, $queue_size:expr, $test:expr) => { ... };
}Expand description
Run a test with specific parallel processing configuration.
This macro creates a test configuration service with the specified parallel processing parameters, then runs the test closure.
§Examples
ⓘ
use subx_cli::{test_with_parallel_config, config::ConfigService};
test_with_parallel_config!(8, 200, |config_service: &dyn ConfigService| {
let config = config_service.get_config().unwrap();
assert_eq!(config.general.max_concurrent_jobs, 8);
assert_eq!(config.parallel.task_queue_size, 200);
});