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

Function test_walltime_executor

src/executor/tests.rs:246–259  ·  view source on GitHub ↗
(
        #[case] cmd: &str,
        #[values(false, true)] enable_profiler: bool,
    )

Source from the content-addressed store, hash-verified

244 #[rstest::rstest]
245 #[test_log::test(tokio::test)]
246 async fn test_walltime_executor(
247 #[case] cmd: &str,
248 #[values(false, true)] enable_profiler: bool,
249 ) {
250 let (_permit, mut executor) = get_walltime_executor().await;
251
252 let config = walltime_config(cmd, enable_profiler);
253 // Unset GITHUB_ACTIONS to force LocalProvider which supports repository_override
254 temp_env::async_with_vars(&[("GITHUB_ACTIONS", None::<&str>)], async {
255 let (execution_context, _temp_dir) = create_test_setup(config).await;
256 executor.run(&execution_context, &None).await.unwrap();
257 })
258 .await;
259 }
260
261 #[apply(env_test_cases)]
262 #[rstest::rstest]

Callers

nothing calls this directly

Calls 4

get_walltime_executorFunction · 0.85
walltime_configFunction · 0.85
create_test_setupFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected