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

Method test

src/cli/run/mod.rs:49–89  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

47impl RunArgs {
48 /// Constructs a new `RunArgs` with default values for testing purposes
49 pub fn test() -> Self {
50 use super::experimental::ExperimentalArgs;
51 use super::{PerfRunArgs, ProfilerRunArgs};
52 use crate::RunnerMode;
53
54 Self {
55 shared: ExecAndRunSharedArgs {
56 upload_url: None,
57 token: None,
58 repository: None,
59 provider: None,
60 working_directory: None,
61 mode: vec![RunnerMode::Simulation],
62 simulation_tool: None,
63 walltime_profiler: None,
64 profile_folder: None,
65 skip_upload: false,
66 skip_run: false,
67 skip_setup: false,
68 allow_empty: false,
69 go_runner_version: None,
70 show_full_output: false,
71 base: None,
72 profiler_run_args: ProfilerRunArgs {
73 enable_profiler: false,
74 enable_perf: None,
75 perf: PerfRunArgs {
76 perf_unwinding_mode: None,
77 },
78 },
79 experimental: ExperimentalArgs {
80 experimental_fair_sched: false,
81 cycle_estimation: false,
82 },
83 },
84 instruments: vec![],
85 mongo_uri_env_name: None,
86 message_format: None,
87 command: vec![],
88 }
89 }
90}
91
92fn build_orchestrator_config(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected