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

Function build_source

src/lang.rs:324–332  ·  view source on GitHub ↗
(content: &str)

Source from the content-addressed store, hash-verified

322 use std::collections::{HashMap, HashSet};
323
324 fn build_source(content: &str) -> Source {
325 Source {
326 dir: "dir".to_string(),
327 files: vec![SourceFile {
328 name: "file.lisp".to_string(),
329 contents: content.to_string(),
330 }],
331 }
332 }
333
334 fn build_shadow_env(env_variables: Vec<(&str, &str)>) -> Shadowenv {
335 let env = env_variables

Callers 6

test_env_manipulationFunction · 0.85
test_set_variablesFunction · 0.85
test_featuresFunction · 0.85
test_expand_pathFunction · 0.85
test_source_orderingFunction · 0.85

Calls

no outgoing calls

Tested by 6

test_env_manipulationFunction · 0.68
test_set_variablesFunction · 0.68
test_featuresFunction · 0.68
test_expand_pathFunction · 0.68
test_source_orderingFunction · 0.68