| 806 | } |
| 807 | |
| 808 | TEST_F(TestArraySortIndicesForFixedSizeBinary, SortFixedSizeBinary) { |
| 809 | for (auto null_placement : AllNullPlacements()) { |
| 810 | for (auto order : AllOrders()) { |
| 811 | this->AssertSortIndices("[]", order, null_placement, "[]"); |
| 812 | this->AssertSortIndices("[null, null]", order, null_placement, "[0, 1]"); |
| 813 | } |
| 814 | this->AssertSortIndices(R"(["def", "abc", "ghi"])", SortOrder::Ascending, |
| 815 | null_placement, "[1, 0, 2]"); |
| 816 | this->AssertSortIndices(R"(["def", "abc", "ghi"])", SortOrder::Descending, |
| 817 | null_placement, "[2, 0, 1]"); |
| 818 | } |
| 819 | |
| 820 | const char* input = R"([null, "ccc", "bbb", null, "aaa", "bbb"])"; |
| 821 | this->AssertSortIndices(input, SortOrder::Ascending, NullPlacement::AtEnd, |
| 822 | "[4, 2, 5, 1, 0, 3]"); |
| 823 | this->AssertSortIndices(input, SortOrder::Ascending, NullPlacement::AtStart, |
| 824 | "[0, 3, 4, 2, 5, 1]"); |
| 825 | this->AssertSortIndices(input, SortOrder::Descending, NullPlacement::AtEnd, |
| 826 | "[1, 2, 5, 4, 0, 3]"); |
| 827 | this->AssertSortIndices(input, SortOrder::Descending, NullPlacement::AtStart, |
| 828 | "[0, 3, 1, 2, 5, 4]"); |
| 829 | } |
| 830 | |
| 831 | template <typename ArrowType> |
| 832 | class TestArraySortIndicesForUInt8 : public TestArraySortIndices<ArrowType> {}; |
nothing calls this directly
no test coverage detected