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

Function test_conflict_tracker_clear

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

Source from the content-addressed store, hash-verified

715
716 #[test]
717 fn test_conflict_tracker_clear() {
718 let mut tracker = ConflictTracker::new();
719
720 tracker.add_zombie_vertex(make_vertex(42, 0, 10));
721 tracker.add_missing_context(MissingContextConflict::predecessors(
722 make_position(42, 100),
723 NodeId::new(50),
724 ));
725
726 assert!(tracker.has_conflicts());
727
728 tracker.clear();
729
730 assert!(!tracker.has_conflicts());
731 assert!(tracker.is_empty());
732 }
733
734 // Conflict Summary Tests
735

Callers

nothing calls this directly

Calls 5

make_vertexFunction · 0.70
make_positionFunction · 0.70
clearMethod · 0.65
add_zombie_vertexMethod · 0.45
add_missing_contextMethod · 0.45

Tested by

no test coverage detected