()
| 183 | |
| 184 | #[test] |
| 185 | fn test_change_path_format() { |
| 186 | let (store, _temp) = create_test_store(); |
| 187 | |
| 188 | let hash = Hash::of(b"test content"); |
| 189 | let path = store.change_path(&hash); |
| 190 | |
| 191 | // Path should be: {changes_dir}/{prefix}/{full_hash}.change |
| 192 | let hash_str = hash.to_base32(); |
| 193 | let expected_prefix = &hash_str[..2]; |
| 194 | |
| 195 | assert!(path.to_string_lossy().contains(expected_prefix)); |
| 196 | assert!(path.to_string_lossy().ends_with(".change")); |
| 197 | assert!(path.to_string_lossy().contains(&hash_str)); |
| 198 | } |
| 199 | |
| 200 | #[test] |
| 201 | fn test_change_path_deterministic() { |
nothing calls this directly
no test coverage detected