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