| 970 | |
| 971 | template <typename ArrayType> |
| 972 | void ValidateSorted(const ArrayType& array, UInt64Array& offsets, SortOrder order, |
| 973 | NullPlacement null_placement) { |
| 974 | ValidateOutput(array); |
| 975 | SortComparator<ArrayType> compare{order, null_placement}; |
| 976 | for (int i = 1; i < array.length(); i++) { |
| 977 | uint64_t lhs = offsets.Value(i - 1); |
| 978 | uint64_t rhs = offsets.Value(i); |
| 979 | ASSERT_TRUE(compare(array, lhs, rhs)); |
| 980 | } |
| 981 | } |
| 982 | |
| 983 | TYPED_TEST_SUITE(TestArraySortIndicesRandom, SortIndicesableTypes); |
| 984 |
nothing calls this directly
no test coverage detected