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

Method AssertAllIs

cpp/src/arrow/compute/kernels/aggregate_test.cc:2535–2541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2533class TestAllKernel : public ::testing::Test {
2534 public:
2535 void AssertAllIs(const Datum& array, const std::shared_ptr<BooleanScalar>& expected,
2536 const ScalarAggregateOptions& options) {
2537 SCOPED_TRACE(options.ToString());
2538 ASSERT_OK_AND_ASSIGN(Datum out, All(array, options, nullptr));
2539 const BooleanScalar& out_all = out.scalar_as<BooleanScalar>();
2540 AssertScalarsEqual(*expected, out_all, /*verbose=*/true);
2541 }
2542
2543 void AssertAllIs(
2544 const std::string& json, const std::shared_ptr<BooleanScalar>& expected,

Callers 1

TEST_FFunction · 0.80

Calls 5

ArrayFromJSONFunction · 0.85
ChunkedArrayFromJSONFunction · 0.85
AssertScalarsEqualFunction · 0.50
DefaultsFunction · 0.50
ToStringMethod · 0.45

Tested by

no test coverage detected