()
| 680 | |
| 681 | #[test] |
| 682 | fn test_local_get_undefined() { |
| 683 | let upcalls = HashMap::default(); |
| 684 | let mut global = GlobalSymtable::new(upcalls); |
| 685 | let local = global.enter_scope(); |
| 686 | |
| 687 | let err = local.get_local_or_global(&VarRef::new("nope", None)).unwrap_err(); |
| 688 | assert_eq!("Undefined global symbol nope", err.to_string()); |
| 689 | } |
| 690 | |
| 691 | #[test] |
| 692 | fn test_local_put_global_through_local() -> Result<()> { |
nothing calls this directly
no test coverage detected