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

Function CheckIndex

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

Source from the content-addressed store, hash-verified

2599//
2600
2601void CheckIndex(Datum array, const std::shared_ptr<Scalar>& value, int64_t expected) {
2602 IndexOptions options(value);
2603 ASSERT_OK_AND_ASSIGN(Datum out, Index(array, options));
2604 const Int64Scalar& out_index = out.scalar_as<Int64Scalar>();
2605 ASSERT_EQ(out_index.value, expected);
2606}
2607
2608template <typename ArrowType>
2609class 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