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

Function test_workspace_rooted_tracking

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

Source from the content-addressed store, hash-verified

638
639 #[test]
640 fn test_workspace_rooted_tracking() {
641 let mut workspace = Workspace::new();
642 let change = NodeId::new(42);
643 let pos = make_internal_position(change, 0);
644
645 assert!(!workspace.is_rooted(&pos));
646
647 workspace.mark_rooted(pos);
648
649 assert!(workspace.is_rooted(&pos));
650 }
651
652 // Error Case Tests
653

Callers

nothing calls this directly

Calls 2

mark_rootedMethod · 0.80
make_internal_positionFunction · 0.70

Tested by

no test coverage detected