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