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

Function empty_roundtrip

nodedb-codec/src/fastlanes/mod.rs:269–273  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

267
268 #[test]
269 fn empty_roundtrip() {
270 let encoded = encode(&[]);
271 let decoded = decode(&encoded).unwrap();
272 assert!(decoded.is_empty());
273 }
274
275 #[test]
276 fn single_value() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected