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

Function streaming_encoder_matches_batch

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

Source from the content-addressed store, hash-verified

360
361 #[test]
362 fn streaming_encoder_matches_batch() {
363 let values: Vec<i64> = (0..1000).map(|i| i * 7).collect();
364 let batch = encode(&values);
365
366 let mut enc = DeltaEncoder::new();
367 for &v in &values {
368 enc.push(v);
369 }
370 assert_eq!(enc.finish(), batch);
371 }
372
373 #[test]
374 fn streaming_decoder() {

Callers

nothing calls this directly

Calls 3

collectMethod · 0.80
encodeFunction · 0.70
pushMethod · 0.45

Tested by

no test coverage detected