(#[case] env_case: (&str, &str))
| 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)] |
nothing calls this directly
no test coverage detected