(env: &str, expected: &str)
| 49 | ]; |
| 50 | |
| 51 | pub fn env_var_validation_script(env: &str, expected: &str) -> String { |
| 52 | let expected: String = expected.quoted(Bash); |
| 53 | format!( |
| 54 | r#" |
| 55 | if [ "${env}" != {expected} ]; then |
| 56 | echo "FAIL: Environment variable not set correctly" |
| 57 | echo "Got: '${env}'" |
| 58 | exit 1 |
| 59 | fi |
| 60 | "# |
| 61 | ) |
| 62 | } |
| 63 | |
| 64 | pub const ENV_TESTS: [(&str, &str); 8] = [ |
| 65 | // Mixed quotes, backticks, and shell metacharacters |
no outgoing calls
no test coverage detected