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

Method test

src/cli/run/mod.rs:49–100  ·  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::{ProfilerRunArgs, WalltimeRunArgs};
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 cycle_estimation: true,
73 exclude_allocations: false,
74 simulation_track_subprocess: false,
75 disable_memory_track_physical: false,
76 disable_memory_capture_stack: false,
77 profiler_run_args: ProfilerRunArgs {
78 enable_profiler: false,
79 enable_perf: None,
80 walltime: WalltimeRunArgs {
81 walltime_unwinding_mode: None,
82 perf_unwinding_mode: None,
83 },
84 },
85 experimental: ExperimentalArgs {
86 experimental_fair_sched: false,
87 experimental_rep_bulk_cost: false,
88 experimental_memory_capture_stack: None,
89 experimental_cycle_estimation: false,
90 experimental_exclude_allocations: false,
91 experimental_memory_track_physical: None,
92 experimental_disable_pythonmalloc_override: false,
93 },
94 },
95 instruments: vec![],
96 mongo_uri_env_name: None,
97 message_format: None,
98 command: vec![],
99 }
100 }
101}
102
103fn build_orchestrator_config(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected