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

Function executor_runs_script

tests/executors.rs:178–190  ·  view source on GitHub ↗
(
    #[values(
        Mode::Simulation,
        Mode::Walltime { profiler: false },
        Mode::Walltime { profiler: true },
        Mode::Memory
    )]
    mode: Mode,
    #[values(SCRIPTS[0], SC

Source from the content-addressed store, hash-verified

176
177#[rstest]
178fn executor_runs_script(
179 #[values(
180 Mode::Simulation,
181 Mode::Walltime { profiler: false },
182 Mode::Walltime { profiler: true },
183 Mode::Memory
184 )]
185 mode: Mode,
186 #[values(SCRIPTS[0], SCRIPTS[1], SCRIPTS[2], SCRIPTS[3], SCRIPTS[4], SCRIPTS[5])] script: &str,
187) {
188 let _guard = mode.acquire();
189 run(mode).args(["--", script]).assert().success();
190}
191
192#[rstest]
193fn executor_forwards_env(

Callers

nothing calls this directly

Calls 3

acquireMethod · 0.80
argsMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected