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

Function empty_roundtrip

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

Source from the content-addressed store, hash-verified

245
246 #[test]
247 fn empty_roundtrip() {
248 let encoded = encode(&[]).unwrap();
249 let decoded = decode(&encoded).unwrap();
250 assert!(decoded.is_empty());
251 }
252
253 #[test]
254 fn basic_roundtrip() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected