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

Function empty_roundtrip

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

Source from the content-addressed store, hash-verified

276
277 #[test]
278 fn empty_roundtrip() {
279 let encoded = encode(&[]);
280 let decoded = decode(&encoded).unwrap();
281 assert!(decoded.is_empty());
282 }
283
284 #[test]
285 fn small_data_roundtrip() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected