()
| 725 | |
| 726 | #[test] |
| 727 | fn test_get_trunk_by_inode() { |
| 728 | let mut txn = MockCrdtTxn::new(); |
| 729 | let id = TrunkId::new(NodeId::new(1), 0); |
| 730 | let inode = Inode::new(42); |
| 731 | let trunk = Trunk::new(id, inode, "test.rs".to_string(), None); |
| 732 | |
| 733 | txn.put_trunk(&trunk).unwrap(); |
| 734 | let found = txn.get_trunk_by_inode(inode).unwrap(); |
| 735 | assert_eq!(found, Some(id)); |
| 736 | } |
| 737 | |
| 738 | #[test] |
| 739 | fn test_update_trunk_path() { |
nothing calls this directly
no test coverage detected