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

Function test_valgrind_executor_with_env

src/executor/tests.rs:191–205  ·  view source on GitHub ↗
(#[case] env_case: (&str, &str))

Source from the content-addressed store, hash-verified

189 #[apply(env_test_cases)]
190 #[test_log::test(tokio::test)]
191 async fn test_valgrind_executor_with_env(#[case] env_case: (&str, &str)) {
192 let (_lock, mut executor) = get_valgrind_executor().await;
193
194 let (env_var, env_value) = env_case;
195 temp_env::async_with_vars(
196 &[(env_var, Some(env_value)), ("GITHUB_ACTIONS", None)],
197 async {
198 let cmd = env_var_validation_script(env_var, env_value);
199 let config = valgrind_config(&cmd);
200 let (execution_context, _temp_dir) = create_test_setup(config).await;
201 executor.run(&execution_context, &None).await.unwrap();
202 },
203 )
204 .await;
205 }
206}
207
208#[test_with::env(GITHUB_ACTIONS)]

Callers

nothing calls this directly

Calls 5

get_valgrind_executorFunction · 0.85
valgrind_configFunction · 0.85
create_test_setupFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected