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

Function small_data_roundtrip

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

Source from the content-addressed store, hash-verified

283
284 #[test]
285 fn small_data_roundtrip() {
286 let data = b"hello world, this is a log message";
287 let encoded = encode(data);
288 let decoded = decode(&encoded).unwrap();
289 assert_eq!(decoded, data);
290 }
291
292 #[test]
293 fn large_data_multiple_blocks() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected