()
| 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() { |
nothing calls this directly
no test coverage detected