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

Function test_workspace_parent_tracking

atomic-core/src/apply/edge.rs:678–686  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

676
677 #[test]
678 fn test_workspace_parent_tracking() {
679 let mut workspace = Workspace::new();
680 let child_pos = make_internal_position(NodeId::new(100), 50);
681 let parent_pos = make_internal_position(NodeId::new(42), 20);
682
683 workspace.set_parent(child_pos, parent_pos);
684
685 assert_eq!(workspace.get_parent(&child_pos), Some(parent_pos));
686 }
687
688 #[test]
689 fn test_workspace_zombie_tracking() {

Callers

nothing calls this directly

Calls 2

set_parentMethod · 0.80
make_internal_positionFunction · 0.70

Tested by

no test coverage detected