| 323 | } |
| 324 | |
| 325 | TEST(TestNthToIndices, Null) { |
| 326 | ASSERT_OK_AND_ASSIGN(auto arr, MakeArrayOfNull(null(), 6)); |
| 327 | auto expected = ArrayFromJSON(uint64(), "[0, 1, 2, 3, 4, 5]"); |
| 328 | for (const auto null_placement : AllNullPlacements()) { |
| 329 | for (const auto n : {0, 1, 2, 3, 4, 5, 6}) { |
| 330 | ASSERT_OK_AND_ASSIGN(auto actual, |
| 331 | NthToIndices(*arr, PartitionNthOptions(n, null_placement))); |
| 332 | AssertArraysEqual(*expected, *actual, /*verbose=*/true); |
| 333 | } |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | template <typename ArrowType> |
| 338 | class TestNthToIndicesRandom : public TestNthToIndicesBase<ArrowType> { |
nothing calls this directly
no test coverage detected