()
| 1115 | |
| 1116 | #[test] |
| 1117 | fn test_trunk_value_encoding_roundtrip() { |
| 1118 | let data = SerializedTrunk { |
| 1119 | inode: Inode::new(42), |
| 1120 | state: TrunkState::Alive, |
| 1121 | encoding: encoding::UTF8, |
| 1122 | path: "src/main.rs".to_string(), |
| 1123 | }; |
| 1124 | |
| 1125 | let bytes = encode_trunk_value(&data); |
| 1126 | let decoded = decode_trunk_value(&bytes).expect("decode failed"); |
| 1127 | assert_eq!(data, decoded); |
| 1128 | } |
| 1129 | |
| 1130 | #[test] |
| 1131 | fn test_trunk_value_encoding_empty_path() { |
nothing calls this directly
no test coverage detected