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

Function test_workspace_rooted_tracking

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

Source from the content-addressed store, hash-verified

559
560 #[test]
561 fn test_workspace_rooted_tracking() {
562 let mut workspace = Workspace::new();
563 let change = NodeId::new(42);
564 let pos = make_internal_position(change, 0);
565
566 assert!(!workspace.is_rooted(&pos));
567
568 workspace.mark_rooted(pos);
569
570 assert!(workspace.is_rooted(&pos));
571 }
572
573 // Error Case Tests
574

Callers

nothing calls this directly

Calls 2

mark_rootedMethod · 0.80
make_internal_positionFunction · 0.70

Tested by

no test coverage detected