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

Function CheckIndex

cpp/src/arrow/compute/kernels/aggregate_test.cc:2641–2646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2639//
2640
2641void CheckIndex(Datum array, const std::shared_ptr<Scalar>& value, int64_t expected) {
2642 IndexOptions options(value);
2643 ASSERT_OK_AND_ASSIGN(Datum out, Index(array, options));
2644 const Int64Scalar& out_index = out.scalar_as<Int64Scalar>();
2645 ASSERT_EQ(out_index.value, expected);
2646}
2647
2648template <typename ArrowType>
2649class TestIndexKernel : public ::testing::Test {

Callers 5

AssertIndexIsMethod · 0.85
TYPED_TESTFunction · 0.85
TESTFunction · 0.85
ExecMethod · 0.85
ResolveStructFieldTypeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected