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

Function test_tracker_ref_iterator

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 1

add_simpleMethod · 0.80

Tested by

no test coverage detected