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

Function test_get_callable_upcall

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

Source from the content-addressed store, hash-verified

796
797 #[test]
798 fn test_get_callable_upcall() {
799 let key = SymbolKey::from("BUILTIN");
800 let md = CallableMetadataBuilder::new("BUILTIN").test_build();
801 let mut upcalls_map = HashMap::new();
802 upcalls_map.insert(key, md);
803
804 let global = GlobalSymtable::new(upcalls_map);
805 let found = global.get_callable(&SymbolKey::from("builtin"));
806 assert!(found.is_some());
807 assert_eq!("BUILTIN", found.unwrap().name());
808 }
809
810 #[test]
811 fn test_user_callable_shadows_upcall() {

Callers

nothing calls this directly

Calls 3

test_buildMethod · 0.80
get_callableMethod · 0.80
insertMethod · 0.45

Tested by

no test coverage detected