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

Function test_manifest_hashes_iterator

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

Source from the content-addressed store, hash-verified

287
288#[test]
289fn test_manifest_hashes_iterator() {
290 let manifest = ChunkManifest::new(vec![
291 ChunkManifestEntry::new(0, [0xAA; 32], 100, 200),
292 ChunkManifestEntry::new(1, [0xBB; 32], 300, 400),
293 ]);
294
295 let hashes: Vec<&[u8; 32]> = manifest.hashes().collect();
296 assert_eq!(hashes.len(), 2);
297 assert_eq!(hashes[0], &[0xAA; 32]);
298 assert_eq!(hashes[1], &[0xBB; 32]);
299}
300
301#[test]
302fn test_manifest_display() {

Callers

nothing calls this directly

Calls 1

hashesMethod · 0.45

Tested by

no test coverage detected