()
| 532 | |
| 533 | #[test] |
| 534 | fn test_workspace_context_clear() { |
| 535 | let mut workspace = Workspace::new(); |
| 536 | let change = NodeId::new(42); |
| 537 | let p1 = make_internal_position(change, 10); |
| 538 | |
| 539 | workspace.add_up_context(p1); |
| 540 | assert_eq!(workspace.up_context_count(), 1); |
| 541 | |
| 542 | workspace.clear_context(); |
| 543 | assert_eq!(workspace.up_context_count(), 0); |
| 544 | } |
| 545 | |
| 546 | #[test] |
| 547 | fn test_workspace_zombie_tracking() { |
nothing calls this directly
no test coverage detected