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

Function test_order_conflict_no_duplicates

atomic-core/src/apply/conflict.rs:617–627  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

615
616 #[test]
617 fn test_order_conflict_no_duplicates() {
618 let pos = make_position(42, 100);
619 let mut conflict = OrderConflict::new(pos);
620
621 let v1 = make_vertex(100, 0, 10);
622
623 conflict.add_insertion(v1, NodeId::new(100));
624 conflict.add_insertion(v1, NodeId::new(100)); // Duplicate
625
626 assert_eq!(conflict.conflict_count(), 1);
627 }
628
629 // Conflict Tracker Tests
630

Callers

nothing calls this directly

Calls 3

add_insertionMethod · 0.80
make_positionFunction · 0.70
make_vertexFunction · 0.70

Tested by

no test coverage detected