()
| 876 | |
| 877 | #[test] |
| 878 | fn test_mark_trunk_alive() { |
| 879 | let mut txn = MockCrdtTxn::new(); |
| 880 | let id = TrunkId::new(NodeId::new(1), 0); |
| 881 | |
| 882 | txn.create_trunk(id, "test.rs", None).unwrap(); |
| 883 | txn.mark_trunk_deleted(id).unwrap(); |
| 884 | txn.mark_trunk_alive(id).unwrap(); |
| 885 | |
| 886 | let trunk = txn.get_trunk(id).unwrap().unwrap(); |
| 887 | assert!(trunk.state().is_alive()); |
| 888 | } |
| 889 | |
| 890 | #[test] |
| 891 | fn test_create_branch() { |
nothing calls this directly
no test coverage detected