MCPcopy Create free account
hub / github.com/apache/arrow-rs / test_iter_aligned

Function test_iter_aligned

arrow-buffer/src/util/bit_chunk_iterator.rs:404–412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

402
403 #[test]
404 fn test_iter_aligned() {
405 let input: &[u8] = &[0, 1, 2, 3, 4, 5, 6, 7];
406 let buffer: Buffer = Buffer::from(input);
407
408 let bitchunks = buffer.bit_chunks(0, 64);
409 let result = bitchunks.into_iter().collect::<Vec<_>>();
410
411 assert_eq!(vec![0x0706050403020100], result);
412 }
413
414 #[test]
415 fn test_iter_unaligned() {

Callers

nothing calls this directly

Calls 2

bit_chunksMethod · 0.45
into_iterMethod · 0.45

Tested by

no test coverage detected