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

Function test_conflict_mark_resolved

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

Source from the content-addressed store, hash-verified

860
861 #[test]
862 fn test_conflict_mark_resolved() {
863 let mut conflict = CrdtConflict::new(ConflictKind::ConcurrentInsert, "test".to_string());
864
865 assert!(!conflict.is_resolved());
866
867 conflict.mark_resolved(Some("ordered by ID".to_string()));
868
869 assert!(conflict.is_resolved());
870 assert_eq!(conflict.resolution(), Some("ordered by ID"));
871 }
872
873 #[test]
874 fn test_conflict_mark_unresolved() {

Callers

nothing calls this directly

Calls 1

mark_resolvedMethod · 0.80

Tested by

no test coverage detected