MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / test

Method test

src/executor/config.rs:208–235  ·  view source on GitHub ↗

Constructs a new `OrchestratorConfig` with default values for testing purposes

()

Source from the content-addressed store, hash-verified

206impl OrchestratorConfig {
207 /// Constructs a new `OrchestratorConfig` with default values for testing purposes
208 pub fn test() -> Self {
209 Self {
210 upload_url: Url::parse(crate::config::DEFAULT_UPLOAD_URL).unwrap(),
211 repository_override: None,
212 working_directory: None,
213 targets: vec![BenchmarkTarget::Entrypoint {
214 command: String::new(),
215 name: None,
216 }],
217 modes: vec![RunnerMode::Simulation],
218 instruments: Instruments::test(),
219 perf_unwinding_mode: None,
220 walltime_profiler: None,
221 enable_profiler: false,
222 simulation_tool: SimulationTool::default(),
223 profile_folder: None,
224 skip_upload: false,
225 skip_run: false,
226 skip_setup: false,
227 allow_empty: false,
228 go_runner_version: None,
229 show_full_output: false,
230 poll_results_options: PollResultsOptions::new(false, None),
231 extra_env: HashMap::new(),
232 fair_sched: false,
233 cycle_estimation: false,
234 }
235 }
236}
237
238#[cfg(test)]

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected