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

Function test_workspace_has_conflicts

atomic-core/src/apply/workspace.rs:1061–1079  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1059
1060 #[test]
1061 fn test_workspace_has_conflicts() {
1062 let mut workspace = Workspace::new();
1063
1064 assert!(!workspace.has_conflicts());
1065
1066 workspace.add_missing_up_context(Position::ROOT);
1067 assert!(workspace.has_conflicts());
1068
1069 workspace.clear();
1070 assert!(!workspace.has_conflicts());
1071
1072 let node = GraphNode::new(
1073 NodeId::new(1),
1074 ChangePosition::new(0),
1075 ChangePosition::new(10),
1076 );
1077 workspace.add_zombie_vertex(node);
1078 assert!(workspace.has_conflicts());
1079 }
1080
1081 // Rooted Tracking Tests
1082

Callers

nothing calls this directly

Calls 3

clearMethod · 0.65
add_zombie_vertexMethod · 0.45

Tested by

no test coverage detected