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

Function TEST

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

Source from the content-addressed store, hash-verified

310}
311
312TEST(TestNthToIndices, Null) {
313 ASSERT_OK_AND_ASSIGN(auto arr, MakeArrayOfNull(null(), 6));
314 auto expected = ArrayFromJSON(uint64(), "[0, 1, 2, 3, 4, 5]");
315 for (const auto null_placement : AllNullPlacements()) {
316 for (const auto n : {0, 1, 2, 3, 4, 5, 6}) {
317 ASSERT_OK_AND_ASSIGN(auto actual,
318 NthToIndices(*arr, PartitionNthOptions(n, null_placement)));
319 AssertArraysEqual(*expected, *actual, /*verbose=*/true);
320 }
321 }
322}
323
324template <typename ArrowType>
325class TestNthToIndicesRandom : public TestNthToIndicesBase<ArrowType> {

Callers

nothing calls this directly

Calls 15

ArrayFromJSONFunction · 0.85
AllNullPlacementsFunction · 0.85
AssertArraysEqualFunction · 0.85
DictArrayFromJSONFunction · 0.85
AllOrdersFunction · 0.85
ValidateOutputFunction · 0.85
AssertDatumsEqualFunction · 0.85
FromArraysFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
AssertSortIndicesFunction · 0.85
StringWithRepeatsMethod · 0.80
push_backMethod · 0.80

Tested by

no test coverage detected