| 140 | |
| 141 | template <UnaryOp& Op, typename ScalarAggregateOptions, typename ScalarType> |
| 142 | void ValidateBooleanAgg(const std::string& json, |
| 143 | const std::shared_ptr<ScalarType>& expected, |
| 144 | const ScalarAggregateOptions& options) { |
| 145 | SCOPED_TRACE(json); |
| 146 | auto array = ArrayFromJSON(boolean(), json); |
| 147 | ASSERT_OK_AND_ASSIGN(Datum result, Op(array, options, nullptr)); |
| 148 | AssertScalarsEqual(*expected, *result.scalar(), /*verbose=*/true); |
| 149 | } |
| 150 | |
| 151 | TEST(TestBooleanAggregation, Sum) { |
| 152 | const ScalarAggregateOptions& options = ScalarAggregateOptions::Defaults(); |
nothing calls this directly
no test coverage detected