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

Function test_memory_executor_with_env

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

Source from the content-addressed store, hash-verified

437 #[apply(env_test_cases)]
438 #[test_log::test(tokio::test)]
439 async fn test_memory_executor_with_env(#[case] env_case: (&str, &str)) {
440 let (_permit, _lock, mut executor) = get_memory_executor().await;
441
442 let (env_var, env_value) = env_case;
443 temp_env::async_with_vars(
444 &[(env_var, Some(env_value)), ("GITHUB_ACTIONS", None)],
445 async {
446 let cmd = env_var_validation_script(env_var, env_value);
447 let config = memory_config(&cmd);
448 let (execution_context, _temp_dir) = create_test_setup(config).await;
449 executor.run(&execution_context, &None).await.unwrap();
450 },
451 )
452 .await;
453 }
454
455 #[test_log::test(tokio::test)]
456 async fn test_memory_executor_forwards_path() {

Callers

nothing calls this directly

Calls 5

get_memory_executorFunction · 0.85
memory_configFunction · 0.85
create_test_setupFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected