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

Function block_iterator_skip

nodedb-codec/src/fastlanes/mod.rs:496–504  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

494
495 #[test]
496 fn block_iterator_skip() {
497 let values: Vec<i64> = (0..3000).collect();
498 let encoded = encode(&values);
499
500 let mut iter = BlockIterator::new(&encoded).unwrap();
501 iter.skip_block().unwrap(); // skip block 0
502 let b1 = iter.next().unwrap().unwrap();
503 assert_eq!(b1, &values[1024..2048]);
504 }
505}

Callers

nothing calls this directly

Calls 4

collectMethod · 0.80
skip_blockMethod · 0.80
encodeFunction · 0.70
nextMethod · 0.45

Tested by

no test coverage detected