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

Function test_conflict_tracker_add_zombie

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

Source from the content-addressed store, hash-verified

639
640 #[test]
641 fn test_conflict_tracker_add_zombie() {
642 let mut tracker = ConflictTracker::new();
643 let node = make_vertex(42, 0, 10);
644 let zombie = ZombieConflict::new(node);
645
646 tracker.add_zombie(zombie);
647
648 assert!(tracker.has_zombies());
649 assert!(tracker.has_conflicts());
650 assert_eq!(tracker.zombie_count(), 1);
651 }
652
653 #[test]
654 fn test_conflict_tracker_add_zombie_vertex() {

Callers

nothing calls this directly

Calls 2

make_vertexFunction · 0.70
add_zombieMethod · 0.45

Tested by

no test coverage detected