()
| 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<()> { |
nothing calls this directly
no test coverage detected