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

Function single_value

nodedb-codec/src/double_delta.rs:367–372  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

365
366 #[test]
367 fn single_value() {
368 let encoded = encode(&[1_700_000_000_000i64]);
369 let decoded = decode(&encoded).unwrap();
370 assert_eq!(decoded, vec![1_700_000_000_000i64]);
371 assert_eq!(encoded.len(), 12);
372 }
373
374 #[test]
375 fn two_values() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected