MCPcopy Create free account
hub / github.com/dylan-sutton-chavez/edge-python / with_manifest

Method with_manifest

compiler/tests/common.rs:88–93  ·  view source on GitHub ↗

Register a manifest at `dir`; nearer manifests win for bare-name resolution. */

(self, dir: &str, imports: &[(&str, &str)], extends: Option<&str>)

Source from the content-addressed store, hash-verified

86
87 /* Register a manifest at `dir`; nearer manifests win for bare-name resolution. */
88 pub fn with_manifest(self, dir: &str, imports: &[(&str, &str)], extends: Option<&str>) -> Self {
89 let imp = imports.iter().map(|(k, v)| (k.to_string(), v.to_string())).collect();
90 let m = Manifest { imports: imp, extends: extends.map(|s| s.to_string()) };
91 self.state.borrow_mut().manifests.insert(dir.to_string(), m);
92 self
93 }
94}
95
96impl Resolver for TestResolver {

Callers 1

build_resolverFunction · 0.80

Calls 3

collectMethod · 0.80
insertMethod · 0.80
iterMethod · 0.45

Tested by

no test coverage detected