()
| 611 | |
| 612 | #[test] |
| 613 | fn test_workspace_context_clear() { |
| 614 | let mut workspace = Workspace::new(); |
| 615 | let change = NodeId::new(42); |
| 616 | let p1 = make_internal_position(change, 10); |
| 617 | |
| 618 | workspace.add_up_context(p1); |
| 619 | assert_eq!(workspace.up_context_count(), 1); |
| 620 | |
| 621 | workspace.clear_context(); |
| 622 | assert_eq!(workspace.up_context_count(), 0); |
| 623 | } |
| 624 | |
| 625 | #[test] |
| 626 | fn test_workspace_zombie_tracking() { |
nothing calls this directly
no test coverage detected