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

Function TEST_F

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

Source from the content-addressed store, hash-verified

793}
794
795TEST_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
818template <typename ArrowType>
819class 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
ArrayFromJSONFunction · 0.85

Tested by

no test coverage detected