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:646–656  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

644
645 #[test]
646 fn test_apply_delete_not_found() {
647 let mut txn = MockTxn::new();
648 let mut context = ApplyContext::new(ApplyOptions::default());
649 let trunk_id = TrunkId::new(NodeId::new(1), 0);
650
651 let op = TrunkOp::Delete { trunk: trunk_id };
652 let result = apply_trunk_op(&mut txn, &mut context, trunk_id, &op);
653
654 assert!(result.is_err());
655 assert!(result.unwrap_err().is_not_found());
656 }
657
658 #[test]
659 fn test_apply_delete_already_deleted() {

Callers

nothing calls this directly

Calls 1

apply_trunk_opFunction · 0.70

Tested by

no test coverage detected