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

Function test_manifest_entry_new

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

Source from the content-addressed store, hash-verified

170
171#[test]
172fn test_manifest_entry_new() {
173 let entry = ChunkManifestEntry::new(0, [0xAA; 32], 32000, 65536);
174 assert_eq!(entry.index, 0);
175 assert_eq!(entry.hash, [0xAA; 32]);
176 assert_eq!(entry.compressed_size, 32000);
177 assert_eq!(entry.uncompressed_size, 65536);
178}
179
180#[test]
181fn test_manifest_entry_compression_ratio() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected