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

Function test_tracker_user_actionable

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

Source from the content-addressed store, hash-verified

1024
1025 #[test]
1026 fn test_tracker_user_actionable() {
1027 let mut tracker = CrdtConflictTracker::new();
1028 tracker.add_simple(ConflictKind::ConcurrentInsert, "auto");
1029 tracker.add_simple(ConflictKind::DeleteModify, "user");
1030 tracker.add_simple(ConflictKind::OrderingCycle, "user2");
1031
1032 let user_actionable: Vec<_> = tracker.user_actionable().collect();
1033 assert_eq!(user_actionable.len(), 2);
1034 }
1035
1036 #[test]
1037 fn test_tracker_has_unresolved() {

Callers

nothing calls this directly

Calls 2

add_simpleMethod · 0.80
user_actionableMethod · 0.80

Tested by

no test coverage detected