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

Function test_tracker_by_kind

atomic-core/src/crdt/apply/conflict.rs:993–1001  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

991
992 #[test]
993 fn test_tracker_by_kind() {
994 let mut tracker = CrdtConflictTracker::new();
995 tracker.add_simple(ConflictKind::ConcurrentInsert, "1");
996 tracker.add_simple(ConflictKind::DeleteModify, "2");
997 tracker.add_simple(ConflictKind::ConcurrentInsert, "3");
998
999 let insert_conflicts: Vec<_> = tracker.by_kind(ConflictKind::ConcurrentInsert).collect();
1000 assert_eq!(insert_conflicts.len(), 2);
1001 }
1002
1003 #[test]
1004 fn test_tracker_count_by_kind() {

Callers

nothing calls this directly

Calls 2

add_simpleMethod · 0.80
by_kindMethod · 0.80

Tested by

no test coverage detected