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

Function test_conflict_builder

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

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls 3

buildMethod · 0.45
branchMethod · 0.45
descriptionMethod · 0.45

Tested by

no test coverage detected