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

Function test_tracker_from_iterator

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

Source from the content-addressed store, hash-verified

1130
1131 #[test]
1132 fn test_tracker_from_iterator() {
1133 let conflicts = vec![
1134 CrdtConflict::new(ConflictKind::ConcurrentInsert, "1".to_string()),
1135 CrdtConflict::new(ConflictKind::DeleteModify, "2".to_string()),
1136 ];
1137
1138 let tracker: CrdtConflictTracker = conflicts.into_iter().collect();
1139 assert_eq!(tracker.count(), 2);
1140 }
1141
1142 #[test]
1143 fn test_tracker_default() {

Callers

nothing calls this directly

Calls 1

into_iterMethod · 0.45

Tested by

no test coverage detected