Define a custom print since the default Googletest print trips Valgrind
| 53 | |
| 54 | // Define a custom print since the default Googletest print trips Valgrind |
| 55 | void PrintTo(const StatisticsTestParam& param, std::ostream* os) { |
| 56 | (*os) << "StatisticsTestParam{" |
| 57 | << "table.schema=" << param.table->schema()->ToString() |
| 58 | << ", expected_null_count=" << param.expected_null_count |
| 59 | << ", expected_value_count=" << param.expected_value_count |
| 60 | << ", expected_min=" << param.expected_min |
| 61 | << ", expected_max=" << param.expected_max << "}"; |
| 62 | } |
| 63 | |
| 64 | class ParameterizedStatisticsTest : public ::testing::TestWithParam<StatisticsTestParam> { |
| 65 | }; |