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

Function env_check_script

tests/executors.rs:164–175  ·  view source on GitHub ↗
(name: &str, expected: &str)

Source from the content-addressed store, hash-verified

162}
163
164fn env_check_script(name: &str, expected: &str) -> String {
165 let expected: String = expected.quoted(Bash);
166 format!(
167 r#"
168if [ "${name}" != {expected} ]; then
169 echo "FAIL: Environment variable not set correctly"
170 echo "Got: '${name}'"
171 exit 1
172fi
173"#
174 )
175}
176
177#[rstest]
178fn executor_runs_script(

Callers 1

executor_forwards_envFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected