MCPcopy Index your code
hub / github.com/endbasic/endbasic / test_local_get_undefined

Function test_local_get_undefined

core/src/compiler/syms.rs:682–689  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

680
681 #[test]
682 fn test_local_get_undefined() {
683 let upcalls = HashMap::default();
684 let mut global = GlobalSymtable::new(upcalls);
685 let local = global.enter_scope();
686
687 let err = local.get_local_or_global(&VarRef::new("nope", None)).unwrap_err();
688 assert_eq!("Undefined global symbol nope", err.to_string());
689 }
690
691 #[test]
692 fn test_local_put_global_through_local() -> Result<()> {

Callers

nothing calls this directly

Calls 2

enter_scopeMethod · 0.80
get_local_or_globalMethod · 0.80

Tested by

no test coverage detected