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/trunk.rs:653–663  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

651
652 #[test]
653 fn test_apply_delete_not_found() {
654 let mut txn = MockTxn::new();
655 let mut context = ApplyContext::new(ApplyOptions::default());
656 let trunk_id = TrunkId::new(NodeId::new(1), 0);
657
658 let op = TrunkOp::Delete { trunk: trunk_id };
659 let result = apply_trunk_op(&mut txn, &mut context, trunk_id, &op);
660
661 assert!(result.is_err());
662 assert!(result.unwrap_err().is_not_found());
663 }
664
665 #[test]
666 fn test_apply_delete_already_deleted() {

Callers

nothing calls this directly

Calls 1

apply_trunk_opFunction · 0.70

Tested by

no test coverage detected