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

Function CheckDecodedBits

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

Check the decoded output in `out` against `expected`.

Source from the content-addressed store, hash-verified

62
63/// Check the decoded output in `out` against `expected`.
64void CheckDecodedBits(const CheckDecodedBitsParams& params) {
65 ARROW_SCOPED_TRACE("out_start_bit = ", params.actual_start_bit,
66 ", expected_start_idx = ", params.expected_start_idx);
67 for (rle_size_t i = 0; i < params.count; ++i) {
68 ASSERT_EQ(bit_util::GetBit(params.actual.data(), params.actual_start_bit + i),
69 params.expected[params.expected_start_idx + i])
70 << "first difference at bit " << i;
71 }
72}
73
74struct CheckBitsEqualParams {
75 const std::vector<uint8_t>& actual;

Callers 5

CheckDecoderClobberFunction · 0.85
CheckBitmapDecoderFunction · 0.85
CheckRleBitPackedDecodeFunction · 0.85
TESTFunction · 0.85

Calls 2

GetBitFunction · 0.70
dataMethod · 0.45

Tested by

no test coverage detected