Constructs a new `OrchestratorConfig` with default values for testing purposes
()
| 265 | impl OrchestratorConfig { |
| 266 | /// Constructs a new `OrchestratorConfig` with default values for testing purposes |
| 267 | pub fn test() -> Self { |
| 268 | Self { |
| 269 | upload_url: Url::parse(crate::config::DEFAULT_UPLOAD_URL).unwrap(), |
| 270 | repository_override: None, |
| 271 | working_directory: None, |
| 272 | targets: vec![BenchmarkTarget::Entrypoint { |
| 273 | command: String::new(), |
| 274 | name: None, |
| 275 | }], |
| 276 | modes: vec![RunnerMode::Simulation], |
| 277 | instruments: Instruments::test(), |
| 278 | walltime_unwinding: None, |
| 279 | walltime_profiler: None, |
| 280 | enable_profiler: false, |
| 281 | simulation_tool: SimulationTool::default(), |
| 282 | profile_folder: None, |
| 283 | skip_upload: false, |
| 284 | skip_run: false, |
| 285 | skip_setup: false, |
| 286 | allow_empty: false, |
| 287 | go_runner_version: None, |
| 288 | show_full_output: false, |
| 289 | poll_results_options: PollResultsOptions::new(false, None), |
| 290 | extra_env: HashMap::new(), |
| 291 | fair_sched: false, |
| 292 | rep_bulk_cost: false, |
| 293 | cycle_estimation: true, |
| 294 | exclude_allocations: false, |
| 295 | simulation_track_subprocess: false, |
| 296 | memory_track_physical: true, |
| 297 | disable_pythonmalloc_override: false, |
| 298 | memory_capture_stack: true, |
| 299 | } |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | #[cfg(test)] |
nothing calls this directly
no test coverage detected