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

Method AssertRank

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

Source from the content-addressed store, hash-verified

2378class TestRank : public BaseTestRank {
2379 protected:
2380 static void AssertRank(const DatumVector& datums, SortOrder order,
2381 NullPlacement null_placement, RankOptions::Tiebreaker tiebreaker,
2382 const std::shared_ptr<Array>& expected) {
2383 const std::vector<SortKey> sort_keys{SortKey("foo", order, null_placement)};
2384 RankOptions options(sort_keys, tiebreaker);
2385 ARROW_SCOPED_TRACE("options = ", options.ToString());
2386 for (const auto& datum : datums) {
2387 ASSERT_OK_AND_ASSIGN(auto actual, CallFunction("rank", {datum}, &options));
2388 ValidateOutput(actual);
2389 AssertDatumsEqual(expected, actual, /*verbose=*/true);
2390 }
2391 }
2392
2393 void AssertRank(SortOrder order, NullPlacement null_placement,

Callers

nothing calls this directly

Calls 4

ValidateOutputFunction · 0.85
AssertDatumsEqualFunction · 0.85
SortKeyClass · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected