| 2599 | // |
| 2600 | |
| 2601 | void 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 | |
| 2608 | template <typename ArrowType> |
| 2609 | class TestIndexKernel : public ::testing::Test { |
no outgoing calls
no test coverage detected