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

Function test_tracker_add_simple

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

Source from the content-addressed store, hash-verified

942
943 #[test]
944 fn test_tracker_add_simple() {
945 let mut tracker = CrdtConflictTracker::new();
946 tracker.add_simple(ConflictKind::DeleteModify, "simple test");
947
948 assert_eq!(tracker.count(), 1);
949 assert_eq!(tracker.as_slice()[0].kind(), ConflictKind::DeleteModify);
950 }
951
952 #[test]
953 fn test_tracker_iter() {

Callers

nothing calls this directly

Calls 1

add_simpleMethod · 0.80

Tested by

no test coverage detected