MCPcopy Create free account
hub / github.com/apache/arrow / TEST_F

Function TEST_F

cpp/src/arrow/compute/kernels/vector_sort_test.cc:808–829  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

806}
807
808TEST_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
831template <typename ArrowType>
832class TestArraySortIndicesForUInt8 : public TestArraySortIndices<ArrowType> {};

Callers

nothing calls this directly

Calls 15

AllNullPlacementsFunction · 0.85
AllOrdersFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
AssertSortIndicesFunction · 0.85
RecordBatchFromJSONFunction · 0.85
fixed_size_binaryFunction · 0.85
decimal256Function · 0.85
TableFromJSONFunction · 0.85
CallFunctionFunction · 0.85
TestSortFunction · 0.85
GetArrayFunction · 0.85

Tested by

no test coverage detected