()
| 1090 | |
| 1091 | #[test] |
| 1092 | fn test_tracker_into_iterator() { |
| 1093 | let mut tracker = CrdtConflictTracker::new(); |
| 1094 | tracker.add_simple(ConflictKind::ConcurrentInsert, "1"); |
| 1095 | tracker.add_simple(ConflictKind::DeleteModify, "2"); |
| 1096 | |
| 1097 | let mut count = 0; |
| 1098 | for _conflict in tracker { |
| 1099 | count += 1; |
| 1100 | } |
| 1101 | assert_eq!(count, 2); |
| 1102 | } |
| 1103 | |
| 1104 | #[test] |
| 1105 | fn test_tracker_ref_iterator() { |
nothing calls this directly
no test coverage detected