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

Function test_apply_delete_not_found

atomic-core/src/crdt/apply/leaf.rs:780–791  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

778
779 #[test]
780 fn test_apply_delete_not_found() {
781 let mut txn = MockTxn::new();
782 let mut context = ApplyContext::new(ApplyOptions::default());
783 let branch_id = BranchId::new(NodeId::new(1), 0);
784 let leaf_id = LeafId::new(NodeId::new(1), 0);
785
786 let op = LeafOp::Delete { leaf: leaf_id };
787 let result = apply_leaf_op(&mut txn, &mut context, branch_id, leaf_id, &op, &[]);
788
789 assert!(result.is_err());
790 assert!(result.unwrap_err().is_not_found());
791 }
792
793 #[test]
794 fn test_apply_delete_already_deleted() {

Callers

nothing calls this directly

Calls 1

apply_leaf_opFunction · 0.70

Tested by

no test coverage detected