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

Function globals_no_duplicates

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

Source from the content-addressed store, hash-verified

79
80 #[test]
81 fn globals_no_duplicates() {
82 let mut st = SymbolTable::new();
83 st.define("foo", 0);
84 st.mark_global("foo");
85 st.mark_global("foo");
86 assert_eq!(st.globals().iter().filter(|g| *g == "foo").count(), 1);
87 }
88
89 #[test]
90 fn all_returns_all_defined_labels() {

Callers

nothing calls this directly

Calls 2

defineMethod · 0.80
mark_globalMethod · 0.80

Tested by

no test coverage detected