()
| 703 | |
| 704 | #[test] |
| 705 | fn test_del_trunk() { |
| 706 | let mut txn = MockCrdtTxn::new(); |
| 707 | let id = TrunkId::new(NodeId::new(1), 0); |
| 708 | let trunk = Trunk::new(id, Inode::new(1), "test.rs".to_string(), None); |
| 709 | |
| 710 | txn.put_trunk(&trunk).unwrap(); |
| 711 | assert!(txn.del_trunk(id).unwrap()); |
| 712 | assert!(!txn.has_trunk(id).unwrap()); |
| 713 | } |
| 714 | |
| 715 | #[test] |
| 716 | fn test_get_trunk_by_path() { |