MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / mark_global_and_query

Function mark_global_and_query

crates/asm-to-binary/src/assembler/symbol_table.rs:73–78  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

71
72 #[test]
73 fn mark_global_and_query() {
74 let mut st = SymbolTable::new();
75 st.define("main", 0);
76 st.mark_global("main");
77 assert!(st.globals().contains(&"main".to_owned()));
78 }
79
80 #[test]
81 fn globals_no_duplicates() {

Callers

nothing calls this directly

Calls 2

defineMethod · 0.80
mark_globalMethod · 0.80

Tested by

no test coverage detected