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

Function boundary_values

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

Source from the content-addressed store, hash-verified

444
445 #[test]
446 fn boundary_values() {
447 let values: Vec<i64> = vec![i64::MIN, 0, i64::MAX, 0, i64::MIN];
448 let encoded = encode(&values);
449 let decoded = decode(&encoded).unwrap();
450 assert_eq!(decoded, values);
451 }
452
453 #[test]
454 fn compression_better_than_raw_for_constant_rate() {

Callers

nothing calls this directly

Calls 2

encodeFunction · 0.70
decodeFunction · 0.70

Tested by

no test coverage detected