()
| 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() { |
nothing calls this directly
no test coverage detected