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

Function CheckBufferRanges

cpp/src/arrow/util/byte_size_test.cc:164–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

162}
163
164void CheckBufferRanges(const std::shared_ptr<Array>& input,
165 const std::vector<ExpectedRange>& expected) {
166 ASSERT_OK_AND_ASSIGN(std::shared_ptr<Array> result, ReferencedRanges(*input->data()));
167 std::shared_ptr<StructArray> result_struct = checked_pointer_cast<StructArray>(result);
168 ASSERT_NE(nullptr, result_struct);
169 AssertArraysEqual(*result_struct->field(1), *RangesToOffsets(expected));
170 AssertArraysEqual(*result_struct->field(2), *RangesToLengths(expected));
171 CheckBufferRangeStarts(result_struct->field(0), expected);
172}
173
174void CheckFixedWidthStarts(const std::shared_ptr<Array>& input) {
175 ASSERT_OK_AND_ASSIGN(std::shared_ptr<Array> result, ReferencedRanges(*input->data()));

Callers 2

TESTFunction · 0.85
TYPED_TESTFunction · 0.85

Calls 8

ReferencedRangesFunction · 0.85
AssertArraysEqualFunction · 0.85
RangesToOffsetsFunction · 0.85
RangesToLengthsFunction · 0.85
CheckBufferRangeStartsFunction · 0.85
ASSERT_OK_AND_ASSIGNFunction · 0.70
dataMethod · 0.45
fieldMethod · 0.45

Tested by

no test coverage detected