MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_workspace_context_clear

Function test_workspace_context_clear

atomic-core/src/apply/insertion.rs:613–623  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

add_up_contextMethod · 0.80
clear_contextMethod · 0.80
make_internal_positionFunction · 0.70

Tested by

no test coverage detected