Check the decoded output in `out` against `expected`.
| 62 | |
| 63 | /// Check the decoded output in `out` against `expected`. |
| 64 | void 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 | |
| 74 | struct CheckBitsEqualParams { |
| 75 | const std::vector<uint8_t>& actual; |
no test coverage detected