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

Function executor_forwards_env

tests/executors.rs:193–220  ·  view source on GitHub ↗
(
    #[values(
        Mode::Simulation,
        Mode::Walltime { profiler: false },
        Mode::Walltime { profiler: true },
        Mode::Memory
    )]
    mode: Mode,
    #[values(
        ENV_V

Source from the content-addressed store, hash-verified

191
192#[rstest]
193fn executor_forwards_env(
194 #[values(
195 Mode::Simulation,
196 Mode::Walltime { profiler: false },
197 Mode::Walltime { profiler: true },
198 Mode::Memory
199 )]
200 mode: Mode,
201 #[values(
202 ENV_VALUES[0],
203 ENV_VALUES[1],
204 ENV_VALUES[2],
205 ENV_VALUES[3],
206 ENV_VALUES[4],
207 ENV_VALUES[5],
208 ENV_VALUES[6],
209 ENV_VALUES[7]
210 )]
211 env: (&str, &str),
212) {
213 let (name, value) = env;
214 let _guard = mode.acquire();
215 run(mode)
216 .args(["--", &env_check_script(name, value)])
217 .env(name, value)
218 .assert()
219 .success();
220}
221
222#[rstest]
223fn walltime_fails_with_the_benchmark(#[values(false, true)] profiler: bool) {

Callers

nothing calls this directly

Calls 5

env_check_scriptFunction · 0.85
acquireMethod · 0.80
envMethod · 0.80
argsMethod · 0.80
runFunction · 0.70

Tested by

no test coverage detected