()
| 800 | |
| 801 | #[test] |
| 802 | fn test_conflict_builder() { |
| 803 | let branch_id = BranchId::new(NodeId::new(1), 0); |
| 804 | |
| 805 | let conflict = CrdtConflict::builder(ConflictKind::DeleteModify) |
| 806 | .description("test conflict") |
| 807 | .branch(branch_id) |
| 808 | .build(); |
| 809 | |
| 810 | assert_eq!(conflict.kind(), ConflictKind::DeleteModify); |
| 811 | assert_eq!(conflict.description(), "test conflict"); |
| 812 | assert_eq!(conflict.entity(), &ConflictEntity::Branch(branch_id)); |
| 813 | } |
| 814 | |
| 815 | #[test] |
| 816 | fn test_conflict_builder_default_description() { |
nothing calls this directly
no test coverage detected