()
| 518 | |
| 519 | #[test] |
| 520 | fn test_workspace_context_tracking() { |
| 521 | let mut workspace = Workspace::new(); |
| 522 | let change = NodeId::new(42); |
| 523 | let p1 = make_internal_position(change, 10); // end of predecessors |
| 524 | let p2 = make_internal_position(change, 20); // start of successors |
| 525 | |
| 526 | workspace.add_up_context(p1); |
| 527 | workspace.add_down_context(p2); |
| 528 | |
| 529 | assert_eq!(workspace.up_context_count(), 1); |
| 530 | assert_eq!(workspace.down_context_count(), 1); |
| 531 | } |
| 532 | |
| 533 | #[test] |
| 534 | fn test_workspace_context_clear() { |
nothing calls this directly
no test coverage detected