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/branch.rs:855–869  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

853
854 #[test]
855 fn test_apply_delete_not_found() {
856 let mut txn = MockTxn::new();
857 let mut context = ApplyContext::new(ApplyOptions::default());
858 let trunk_id = TrunkId::new(NodeId::new(1), 0);
859 let branch_id = BranchId::new(NodeId::new(1), 0);
860
861 let op = BranchOp::Delete {
862 branch: branch_id,
863 content: vec![],
864 };
865 let result = apply_branch_op(&mut txn, &mut context, trunk_id, branch_id, &op, &[]);
866
867 assert!(result.is_err());
868 assert!(result.unwrap_err().is_not_found());
869 }
870
871 #[test]
872 fn test_apply_delete_already_deleted() {

Callers

nothing calls this directly

Calls 1

apply_branch_opFunction · 0.85

Tested by

no test coverage detected