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

Function i64_roundtrip

nodedb-codec/src/pcodec.rs:192–197  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

190
191 #[test]
192 fn i64_roundtrip() {
193 let values: Vec<i64> = (0..1000).map(|i| i * i * 7 - 500).collect();
194 let encoded = encode_i64(&values).unwrap();
195 let decoded = decode_i64(&encoded).unwrap();
196 assert_eq!(decoded, values);
197 }
198
199 #[test]
200 fn i64_compression_ratio() {

Callers

nothing calls this directly

Calls 3

encode_i64Function · 0.85
decode_i64Function · 0.85
collectMethod · 0.80

Tested by

no test coverage detected