()
| 212 | |
| 213 | #[test] |
| 214 | fn test_manifest_entry_json_format() { |
| 215 | let entry = ChunkManifestEntry::new(0, [0xAB; 32], 100, 200); |
| 216 | let json = serde_json::to_string_pretty(&entry).unwrap(); |
| 217 | // Hash should be hex-encoded |
| 218 | assert!(json.contains("abababab")); |
| 219 | assert!(json.contains("\"index\": 0")); |
| 220 | assert!(json.contains("\"compressed_size\": 100")); |
| 221 | } |
| 222 | |
| 223 | // ── ChunkManifest ────────────────────────────────────────────── |
| 224 |