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

Function test_tracker_into_iterator

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

add_simpleMethod · 0.80

Tested by

no test coverage detected