MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / header_metadata

Function header_metadata

nodedb-codec/src/zstd_codec.rs:284–290  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

282
283 #[test]
284 fn header_metadata() {
285 let data = vec![42u8; 1000];
286 let encoded = encode_with_level(&data, 7).unwrap();
287
288 assert_eq!(uncompressed_size(&encoded).unwrap(), 1000);
289 assert_eq!(compression_level(&encoded).unwrap(), 7);
290 }
291
292 #[test]
293 fn better_ratio_than_lz4() {

Callers

nothing calls this directly

Calls 1

encode_with_levelFunction · 0.85

Tested by

no test coverage detected