()
| 931 | |
| 932 | #[test] |
| 933 | fn test_mark_leaf_deleted() { |
| 934 | let mut txn = MockCrdtTxn::new(); |
| 935 | let branch_id = BranchId::new(NodeId::new(1), 0); |
| 936 | let leaf_id = LeafId::new(NodeId::new(1), 0); |
| 937 | |
| 938 | txn.create_leaf(leaf_id, branch_id, TokenKind::Word, 0..5, None) |
| 939 | .unwrap(); |
| 940 | txn.mark_leaf_deleted(leaf_id).unwrap(); |
| 941 | |
| 942 | let leaf = txn.get_leaf(leaf_id).unwrap().unwrap(); |
| 943 | assert!(leaf.state().is_deleted()); |
| 944 | } |
| 945 | |
| 946 | #[test] |
| 947 | fn test_alloc_inode() { |
nothing calls this directly
no test coverage detected