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

Function test_tracker_count_by_kind

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

Source from the content-addressed store, hash-verified

1002
1003 #[test]
1004 fn test_tracker_count_by_kind() {
1005 let mut tracker = CrdtConflictTracker::new();
1006 tracker.add_simple(ConflictKind::ConcurrentInsert, "1");
1007 tracker.add_simple(ConflictKind::DeleteModify, "2");
1008 tracker.add_simple(ConflictKind::ConcurrentInsert, "3");
1009
1010 assert_eq!(tracker.count_by_kind(ConflictKind::ConcurrentInsert), 2);
1011 assert_eq!(tracker.count_by_kind(ConflictKind::DeleteModify), 1);
1012 assert_eq!(tracker.count_by_kind(ConflictKind::OrderingCycle), 0);
1013 }
1014
1015 #[test]
1016 fn test_tracker_has_user_actionable() {

Callers

nothing calls this directly

Calls 1

add_simpleMethod · 0.80

Tested by

no test coverage detected