()
| 597 | |
| 598 | #[test] |
| 599 | fn test_workspace_context_tracking() { |
| 600 | let mut workspace = Workspace::new(); |
| 601 | let change = NodeId::new(42); |
| 602 | let p1 = make_internal_position(change, 10); // end of predecessors |
| 603 | let p2 = make_internal_position(change, 20); // start of successors |
| 604 | |
| 605 | workspace.add_up_context(p1); |
| 606 | workspace.add_down_context(p2); |
| 607 | |
| 608 | assert_eq!(workspace.up_context_count(), 1); |
| 609 | assert_eq!(workspace.down_context_count(), 1); |
| 610 | } |
| 611 | |
| 612 | #[test] |
| 613 | fn test_workspace_context_clear() { |
nothing calls this directly
no test coverage detected