()
| 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() { |
nothing calls this directly
no test coverage detected