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

Function test_tracker_iter

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

Source from the content-addressed store, hash-verified

951
952 #[test]
953 fn test_tracker_iter() {
954 let mut tracker = CrdtConflictTracker::new();
955 tracker.add_simple(ConflictKind::ConcurrentInsert, "1");
956 tracker.add_simple(ConflictKind::DeleteModify, "2");
957
958 let kinds: Vec<_> = tracker.iter().map(|c| c.kind()).collect();
959 assert_eq!(kinds.len(), 2);
960 }
961
962 #[test]
963 fn test_tracker_iter_mut() {

Callers

nothing calls this directly

Calls 3

add_simpleMethod · 0.80
iterMethod · 0.45
kindMethod · 0.45

Tested by

no test coverage detected