| 334 | } |
| 335 | |
| 336 | void AssertColumnChunkMinMax(const FileMetaData& metadata, |
| 337 | ColumnOrder::type expected_order, int32_t min, int32_t max) { |
| 338 | auto column = GetOnlyColumnChunk(metadata, expected_order); |
| 339 | const std::string encoded_min = EncodeInt32(min); |
| 340 | const std::string encoded_max = EncodeInt32(max); |
| 341 | |
| 342 | ASSERT_NE(nullptr, column->encoded_statistics()); |
| 343 | EXPECT_EQ(encoded_min, column->encoded_statistics()->min()); |
| 344 | EXPECT_EQ(encoded_max, column->encoded_statistics()->max()); |
| 345 | ASSERT_NE(nullptr, column->statistics()); |
| 346 | EXPECT_EQ(encoded_min, column->statistics()->EncodeMin()); |
| 347 | EXPECT_EQ(encoded_max, column->statistics()->EncodeMax()); |
| 348 | } |
| 349 | |
| 350 | } // namespace |
| 351 |
no test coverage detected