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

Method resolve

compiler/tests/common.rs:97–108  ·  view source on GitHub ↗
(&mut self, spec: &str)

Source from the content-addressed store, hash-verified

95
96impl Resolver for TestResolver {
97 fn resolve(&mut self, spec: &str) -> Result<Resolved, String> {
98 if !spec.contains('/') {
99 let dir = self.dir.clone();
100 return self.resolve_bare(spec, &dir);
101 }
102 let canonical = if spec.contains("://") || spec.starts_with('/') {
103 spec.to_string()
104 } else {
105 join_relative(&self.dir, spec)
106 };
107 self.resolve_canonical(&canonical)
108 }
109
110 /* Transitive sub-resolver: shares state, rescopes `dir`; Drop clears the in-flight marker. */
111 fn child(&self, spec: &str) -> Box<dyn Resolver> {

Callers

nothing calls this directly

Calls 4

join_relativeFunction · 0.85
containsMethod · 0.45
resolve_bareMethod · 0.45
resolve_canonicalMethod · 0.45

Tested by

no test coverage detected