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

Function small_data_roundtrip

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

Source from the content-addressed store, hash-verified

245
246 #[test]
247 fn small_data_roundtrip() {
248 let data = b"hello world, zstd compression test";
249 let encoded = encode(data).unwrap();
250 let decoded = decode(&encoded).unwrap();
251 assert_eq!(decoded, data);
252 }
253
254 #[test]
255 fn large_data_roundtrip() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected