(env_variables: Vec<(&str, &str)>)
| 332 | } |
| 333 | |
| 334 | fn build_shadow_env(env_variables: Vec<(&str, &str)>) -> Shadowenv { |
| 335 | let env = env_variables |
| 336 | .into_iter() |
| 337 | .map(|(k, v)| (k.to_string(), v.to_string())) |
| 338 | .collect::<HashMap<_, _>>(); |
| 339 | Shadowenv::new(env, Data::new(), 0, false) |
| 340 | } |
| 341 | |
| 342 | #[test] |
| 343 | fn test_env_manipulation() { |
no outgoing calls