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

Function single_value

nodedb-codec/src/delta.rs:262–267  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

260
261 #[test]
262 fn single_value() {
263 let encoded = encode(&[42i64]);
264 let decoded = decode(&encoded).unwrap();
265 assert_eq!(decoded, vec![42i64]);
266 assert_eq!(encoded.len(), 12); // 4 + 8
267 }
268
269 #[test]
270 fn monotonic_counter() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected