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

Function empty_roundtrip

nodedb-codec/src/rans.rs:339–343  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

337
338 #[test]
339 fn empty_roundtrip() {
340 let encoded = encode(&[]);
341 let decoded = decode(&encoded).unwrap();
342 assert!(decoded.is_empty());
343 }
344
345 #[test]
346 fn single_byte() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected