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

Function TEST

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

Source from the content-addressed store, hash-verified

323}
324
325TEST(TestNthToIndices, Null) {
326 ASSERT_OK_AND_ASSIGN(auto arr, MakeArrayOfNull(null(), 6));
327 auto expected = ArrayFromJSON(uint64(), "[0, 1, 2, 3, 4, 5]");
328 for (const auto null_placement : AllNullPlacements()) {
329 for (const auto n : {0, 1, 2, 3, 4, 5, 6}) {
330 ASSERT_OK_AND_ASSIGN(auto actual,
331 NthToIndices(*arr, PartitionNthOptions(n, null_placement)));
332 AssertArraysEqual(*expected, *actual, /*verbose=*/true);
333 }
334 }
335}
336
337template <typename ArrowType>
338class 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