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