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

Function TestRleBitPackedParserError

cpp/src/arrow/util/rle_encoding_test.cc:492–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

490}
491
492void TestRleBitPackedParserError(std::span<const uint8_t> bytes, rle_size_t bit_width) {
493 auto parser =
494 RleBitPackedParser(bytes.data(), static_cast<rle_size_t>(bytes.size()), bit_width);
495 EXPECT_FALSE(parser.exhausted());
496
497 struct {
498 auto OnRleRun(RleRun run) { return RleBitPackedParser::ControlFlow::Continue; }
499 auto OnBitPackedRun(BitPackedRun run) {
500 return RleBitPackedParser::ControlFlow::Continue;
501 }
502 } handler;
503
504 // Iterate over all runs
505 parser.Parse(handler);
506 // Non-exhaustion despite ControlFlow::Continue signals an error occurred.
507 EXPECT_FALSE(parser.exhausted());
508}
509
510void TestRleBitPackedParserError(const std::vector<uint8_t>& bytes,
511 rle_size_t bit_width) {

Callers 1

TESTFunction · 0.85

Calls 5

RleBitPackedParserClass · 0.85
dataMethod · 0.45
sizeMethod · 0.45
exhaustedMethod · 0.45
ParseMethod · 0.45

Tested by

no test coverage detected