()
| 864 | |
| 865 | #[test] |
| 866 | fn test_mark_trunk_deleted() { |
| 867 | let mut txn = MockCrdtTxn::new(); |
| 868 | let id = TrunkId::new(NodeId::new(1), 0); |
| 869 | |
| 870 | txn.create_trunk(id, "test.rs", None).unwrap(); |
| 871 | txn.mark_trunk_deleted(id).unwrap(); |
| 872 | |
| 873 | let trunk = txn.get_trunk(id).unwrap().unwrap(); |
| 874 | assert!(trunk.state().is_deleted()); |
| 875 | } |
| 876 | |
| 877 | #[test] |
| 878 | fn test_mark_trunk_alive() { |
nothing calls this directly
no test coverage detected