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