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

Function noop_resolver_default

compiler/tests/packages.rs:117–122  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115 /* NoopResolver path: imports must produce a clean diagnostic, not panic. Lives in Rust since the JSON runner always builds a TestResolver. */
116 #[test]
117 fn noop_resolver_default() {
118 let src = "from json import dumps";
119 let (tokens, _) = lex(src);
120 let (_, errs) = Parser::new(src, tokens.into_iter()).parse();
121 assert!(errs.iter().any(|d| d.msg.contains("not found") || d.msg.contains("not configured")), "expected NoopResolver error, got: {:?}", errs.iter().map(|e| &e.msg).collect::<Vec<_>>());
122 }
123
124 #[test]
125 fn packages_cases() {

Callers

nothing calls this directly

Calls 2

lexFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected