| 793 | } |
| 794 | |
| 795 | TEST_F(TestArraySortIndicesForFixedSizeBinary, SortFixedSizeBinary) { |
| 796 | for (auto null_placement : AllNullPlacements()) { |
| 797 | for (auto order : AllOrders()) { |
| 798 | this->AssertSortIndices("[]", order, null_placement, "[]"); |
| 799 | this->AssertSortIndices("[null, null]", order, null_placement, "[0, 1]"); |
| 800 | } |
| 801 | this->AssertSortIndices(R"(["def", "abc", "ghi"])", SortOrder::Ascending, |
| 802 | null_placement, "[1, 0, 2]"); |
| 803 | this->AssertSortIndices(R"(["def", "abc", "ghi"])", SortOrder::Descending, |
| 804 | null_placement, "[2, 0, 1]"); |
| 805 | } |
| 806 | |
| 807 | const char* input = R"([null, "ccc", "bbb", null, "aaa", "bbb"])"; |
| 808 | this->AssertSortIndices(input, SortOrder::Ascending, NullPlacement::AtEnd, |
| 809 | "[4, 2, 5, 1, 0, 3]"); |
| 810 | this->AssertSortIndices(input, SortOrder::Ascending, NullPlacement::AtStart, |
| 811 | "[0, 3, 4, 2, 5, 1]"); |
| 812 | this->AssertSortIndices(input, SortOrder::Descending, NullPlacement::AtEnd, |
| 813 | "[1, 2, 5, 4, 0, 3]"); |
| 814 | this->AssertSortIndices(input, SortOrder::Descending, NullPlacement::AtStart, |
| 815 | "[0, 3, 1, 2, 5, 4]"); |
| 816 | } |
| 817 | |
| 818 | template <typename ArrowType> |
| 819 | class TestArraySortIndicesForUInt8 : public TestArraySortIndices<ArrowType> {}; |
nothing calls this directly
no test coverage detected