MCPcopy Create free account
hub / github.com/Shopify/shadowenv / build_shadow_env

Function build_shadow_env

src/lang.rs:334–340  ·  view source on GitHub ↗
(env_variables: Vec<(&str, &str)>)

Source from the content-addressed store, hash-verified

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() {

Callers 6

test_env_manipulationFunction · 0.70
test_set_variablesFunction · 0.70
test_featuresFunction · 0.70
test_expand_pathFunction · 0.70
test_source_orderingFunction · 0.70

Calls

no outgoing calls

Tested by 6

test_env_manipulationFunction · 0.56
test_set_variablesFunction · 0.56
test_featuresFunction · 0.56
test_expand_pathFunction · 0.56
test_source_orderingFunction · 0.56