MCPcopy Create free account
hub / github.com/apache/arrow / TEST

Function TEST

cpp/src/arrow/util/rle_bitmap_test.cc:473–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

471} // namespace
472
473TEST(RleBitPackedToBitmapDecoder, Empty) {
474 // A default-constructed decoder is already exhausted.
475 RleBitPackedToBitmapDecoder decoder;
476 EXPECT_TRUE(decoder.exhausted());
477 uint8_t out = 0;
478 auto got = decoder.GetBatch(BitmapSpanMut(&out), 8);
479 EXPECT_EQ(got, 0);
480
481 // So is one reset on an empty buffer.
482 decoder.Reset(nullptr, 0);
483 EXPECT_TRUE(decoder.exhausted());
484 got = decoder.GetBatch(BitmapSpanMut(&out), 8);
485 EXPECT_EQ(got, 0);
486}
487
488TEST(RleBitPackedToBitmapDecoder, SingleRleZeros) {
489 std::vector<uint8_t> bytes;

Callers

nothing calls this directly

Calls 12

AppendRleRunFunction · 0.85
AppendBitPackedRunFunction · 0.85
BytesForBitsFunction · 0.85
CheckDecodedBitsFunction · 0.85
AppendLeb128Function · 0.85
push_backMethod · 0.80
exhaustedMethod · 0.45
GetBatchMethod · 0.45
ResetMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected