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

Function test_tracker_iter_mut

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

Source from the content-addressed store, hash-verified

961
962 #[test]
963 fn test_tracker_iter_mut() {
964 let mut tracker = CrdtConflictTracker::new();
965 tracker.add_simple(ConflictKind::ConcurrentInsert, "test");
966
967 for conflict in tracker.iter_mut() {
968 conflict.mark_resolved(None);
969 }
970
971 assert!(tracker.as_slice()[0].is_resolved());
972 }
973
974 #[test]
975 fn test_tracker_into_conflicts() {

Callers

nothing calls this directly

Calls 3

add_simpleMethod · 0.80
iter_mutMethod · 0.80
mark_resolvedMethod · 0.80

Tested by

no test coverage detected