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

Function test_conflict_group

atomic-core/src/merge/mod.rs:175–189  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

173
174 #[test]
175 fn test_conflict_group() {
176 let v1 = GraphNode::new(
177 NodeId::new(1),
178 ChangePosition::new(0),
179 ChangePosition::new(10),
180 );
181 let v2 = GraphNode::new(
182 NodeId::new(2),
183 ChangePosition::new(0),
184 ChangePosition::new(10),
185 );
186 let group = ConflictGroup::new(vec![v1, v2]);
187 assert_eq!(group.vertex_count(), 2);
188 assert!(group.ancestor.is_none());
189 }
190
191 #[test]
192 fn test_conflict_group_with_ancestor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected