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

Function test_temp_scope_first_no_locals

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

Source from the content-addressed store, hash-verified

848
849 #[test]
850 fn test_temp_scope_first_no_locals() -> Result<()> {
851 let upcalls = HashMap::default();
852 let mut global = GlobalSymtable::new(upcalls);
853 let mut local = global.enter_scope();
854 {
855 let temp = local.frozen();
856 let mut scope = temp.temp_scope();
857 assert_eq!(Register::local(0).unwrap(), scope.first()?);
858 }
859 Ok(())
860 }
861
862 #[test]
863 fn test_temp_scope_first_with_outer_allocation() -> Result<()> {

Callers

nothing calls this directly

Calls 3

enter_scopeMethod · 0.80
frozenMethod · 0.80
temp_scopeMethod · 0.80

Tested by

no test coverage detected