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

Function test_tracker_add

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

Source from the content-addressed store, hash-verified

930
931 #[test]
932 fn test_tracker_add() {
933 let mut tracker = CrdtConflictTracker::new();
934 tracker.add(CrdtConflict::new(
935 ConflictKind::ConcurrentInsert,
936 "test".to_string(),
937 ));
938
939 assert!(tracker.has_conflicts());
940 assert_eq!(tracker.count(), 1);
941 }
942
943 #[test]
944 fn test_tracker_add_simple() {

Callers

nothing calls this directly

Calls 1

addMethod · 0.45

Tested by

no test coverage detected