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

Function test_workspace_parent_tracking

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

Source from the content-addressed store, hash-verified

854
855 #[test]
856 fn test_workspace_parent_tracking() {
857 let mut workspace = Workspace::new();
858 let child_pos = make_internal_position(NodeId::new(100), 50);
859 let parent_pos = make_internal_position(NodeId::new(42), 20);
860
861 workspace.set_parent(child_pos, parent_pos);
862
863 assert_eq!(workspace.get_parent(&child_pos), Some(parent_pos));
864 }
865
866 #[test]
867 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