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

Function ExpectArray

cpp/src/parquet/arrow/test_util.h:457–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455
456template <typename T>
457void ExpectArray(T* expected, Array* result) {
458 auto p_array = static_cast<::arrow::PrimitiveArray*>(result);
459 for (int i = 0; i < result->length(); i++) {
460 EXPECT_EQ(expected[i], reinterpret_cast<const T*>(p_array->values()->data())[i]);
461 }
462}
463
464template <typename ArrowType>
465void ExpectArrayT(void* expected, Array* result) {

Callers

nothing calls this directly

Calls 3

lengthMethod · 0.45
dataMethod · 0.45
valuesMethod · 0.45

Tested by

no test coverage detected