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

Function CheckSort

cpp/src/arrow/util/small_vector_test.cc:528–535  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

526
527 template <size_t N>
528 void CheckSort() {
529 IntVectorType<N> ints;
530 for (int v : {42, 2, 123, -5, 6, 12, 8, 13}) {
531 ints.emplace_back(v);
532 }
533 std::sort(ints.begin(), ints.end());
534 EXPECT_THAT(ints, ElementsAre(-5, 2, 6, 8, 12, 13, 42, 123));
535 }
536
537 void TestSort() {
538 CheckSort<Traits::TestSizeFor(8)>();

Callers

nothing calls this directly

Calls 3

emplace_backMethod · 0.80
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected