()
| 1103 | |
| 1104 | #[test] |
| 1105 | fn test_tracker_ref_iterator() { |
| 1106 | let mut tracker = CrdtConflictTracker::new(); |
| 1107 | tracker.add_simple(ConflictKind::ConcurrentInsert, "1"); |
| 1108 | |
| 1109 | let mut count = 0; |
| 1110 | for _conflict in &tracker { |
| 1111 | count += 1; |
| 1112 | } |
| 1113 | assert_eq!(count, 1); |
| 1114 | // tracker still usable |
| 1115 | assert_eq!(tracker.count(), 1); |
| 1116 | } |
| 1117 | |
| 1118 | #[test] |
| 1119 | fn test_tracker_extend() { |
nothing calls this directly
no test coverage detected