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

Function test_manifest_with_entries

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

Source from the content-addressed store, hash-verified

233
234#[test]
235fn test_manifest_with_entries() {
236 let manifest = ChunkManifest::new(vec![
237 ChunkManifestEntry::new(0, [0xAA; 32], 32000, 65536),
238 ChunkManifestEntry::new(1, [0xBB; 32], 28000, 65536),
239 ChunkManifestEntry::new(2, [0xCC; 32], 15000, 40000),
240 ]);
241
242 assert_eq!(manifest.chunk_count(), 3);
243 assert!(!manifest.is_empty());
244 assert_eq!(manifest.total_compressed(), 75000);
245 assert_eq!(manifest.total_uncompressed(), 171072);
246}
247
248#[test]
249fn test_manifest_hash_set() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected