| 310 | } |
| 311 | |
| 312 | TEST(TestNthToIndices, Null) { |
| 313 | ASSERT_OK_AND_ASSIGN(auto arr, MakeArrayOfNull(null(), 6)); |
| 314 | auto expected = ArrayFromJSON(uint64(), "[0, 1, 2, 3, 4, 5]"); |
| 315 | for (const auto null_placement : AllNullPlacements()) { |
| 316 | for (const auto n : {0, 1, 2, 3, 4, 5, 6}) { |
| 317 | ASSERT_OK_AND_ASSIGN(auto actual, |
| 318 | NthToIndices(*arr, PartitionNthOptions(n, null_placement))); |
| 319 | AssertArraysEqual(*expected, *actual, /*verbose=*/true); |
| 320 | } |
| 321 | } |
| 322 | } |
| 323 | |
| 324 | template <typename ArrowType> |
| 325 | class TestNthToIndicesRandom : public TestNthToIndicesBase<ArrowType> { |
nothing calls this directly
no test coverage detected