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

Function test_tracker_has_unresolved

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

Source from the content-addressed store, hash-verified

1035
1036 #[test]
1037 fn test_tracker_has_unresolved() {
1038 let mut tracker = CrdtConflictTracker::new();
1039 tracker.add_simple(ConflictKind::ConcurrentInsert, "test");
1040
1041 assert!(tracker.has_unresolved());
1042
1043 for conflict in tracker.iter_mut() {
1044 conflict.mark_resolved(None);
1045 }
1046
1047 assert!(!tracker.has_unresolved());
1048 }
1049
1050 #[test]
1051 fn test_tracker_unresolved() {

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