MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_manifest_entry_json_format

Function test_manifest_entry_json_format

atomic-remote/src/streaming/tests.rs:214–221  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

212
213#[test]
214fn 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

Callers

nothing calls this directly

Calls 1

unwrapMethod · 0.45

Tested by

no test coverage detected