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

Function test_global_get_undefined

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

Source from the content-addressed store, hash-verified

620
621 #[test]
622 fn test_global_get_undefined() {
623 let upcalls = HashMap::default();
624 let global = GlobalSymtable::new(upcalls);
625
626 let err = global.get_global(&VarRef::new("x", None)).unwrap_err();
627 assert_eq!("Undefined global symbol x", err.to_string());
628 }
629
630 #[test]
631 fn test_local_put_and_get() -> Result<()> {

Callers

nothing calls this directly

Calls 1

get_globalMethod · 0.45

Tested by

no test coverage detected