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

Function TestRleBitPackedParserError

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

Source from the content-addressed store, hash-verified

464}
465
466void TestRleBitPackedParserError(std::span<const uint8_t> bytes, rle_size_t bit_width) {
467 auto parser =
468 RleBitPackedParser(bytes.data(), static_cast<rle_size_t>(bytes.size()), bit_width);
469 EXPECT_FALSE(parser.exhausted());
470
471 struct {
472 auto OnRleRun(RleRun run) { return RleBitPackedParser::ControlFlow::Continue; }
473 auto OnBitPackedRun(BitPackedRun run) {
474 return RleBitPackedParser::ControlFlow::Continue;
475 }
476 } handler;
477
478 // Iterate over all runs
479 parser.Parse(handler);
480 // Non-exhaustion despite ControlFlow::Continue signals an error occurred.
481 EXPECT_FALSE(parser.exhausted());
482}
483
484void TestRleBitPackedParserError(const std::vector<uint8_t>& bytes,
485 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