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

Function ExpectArrayT

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

Source from the content-addressed store, hash-verified

463
464template <typename ArrowType>
465void ExpectArrayT(void* expected, Array* result) {
466 ::arrow::PrimitiveArray* p_array = static_cast<::arrow::PrimitiveArray*>(result);
467 for (int64_t i = 0; i < result->length(); i++) {
468 EXPECT_EQ(reinterpret_cast<typename ArrowType::c_type*>(expected)[i],
469 reinterpret_cast<const typename ArrowType::c_type*>(
470 p_array->values()->data())[i]);
471 }
472}
473
474template <>
475void ExpectArrayT<::arrow::BooleanType>(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