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

Function test_conflict_tracker_total_count

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

Source from the content-addressed store, hash-verified

689
690 #[test]
691 fn test_conflict_tracker_total_count() {
692 let mut tracker = ConflictTracker::new();
693
694 tracker.add_zombie_vertex(make_vertex(42, 0, 10));
695 tracker.add_missing_context(MissingContextConflict::predecessors(
696 make_position(42, 100),
697 NodeId::new(50),
698 ));
699 tracker.add_order_conflict(OrderConflict::new(make_position(42, 200)));
700
701 assert_eq!(tracker.total_conflict_count(), 3);
702 }
703
704 #[test]
705 fn test_conflict_tracker_involved_changes() {

Callers

nothing calls this directly

Calls 5

add_order_conflictMethod · 0.80
make_vertexFunction · 0.70
make_positionFunction · 0.70
add_zombie_vertexMethod · 0.45
add_missing_contextMethod · 0.45

Tested by

no test coverage detected