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

Function test_tracker_unresolved

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

Source from the content-addressed store, hash-verified

1049
1050 #[test]
1051 fn test_tracker_unresolved() {
1052 let mut tracker = CrdtConflictTracker::new();
1053 tracker.add_simple(ConflictKind::ConcurrentInsert, "1");
1054 tracker.add_simple(ConflictKind::DeleteModify, "2");
1055
1056 // Resolve the first one
1057 tracker.iter_mut().next().unwrap().mark_resolved(None);
1058
1059 let unresolved: Vec<_> = tracker.unresolved().collect();
1060 assert_eq!(unresolved.len(), 1);
1061 assert_eq!(tracker.unresolved_count(), 1);
1062 }
1063
1064 #[test]
1065 fn test_tracker_merge() {

Callers

nothing calls this directly

Calls 6

add_simpleMethod · 0.80
mark_resolvedMethod · 0.80
iter_mutMethod · 0.80
unresolvedMethod · 0.80
unwrapMethod · 0.45
nextMethod · 0.45

Tested by

no test coverage detected