| 360 | } |
| 361 | |
| 362 | void TestReset() { |
| 363 | this->GenerateData(1000); |
| 364 | |
| 365 | auto statistics = MakeStatistics<TestType>(this->schema_.Column(0)); |
| 366 | statistics->Update(this->values_ptr_, this->values_.size(), 0); |
| 367 | ASSERT_EQ(this->values_.size(), statistics->num_values()); |
| 368 | |
| 369 | statistics->Reset(); |
| 370 | ASSERT_TRUE(statistics->HasNullCount()); |
| 371 | ASSERT_FALSE(statistics->HasMinMax()); |
| 372 | ASSERT_FALSE(statistics->HasDistinctCount()); |
| 373 | ASSERT_EQ(0, statistics->null_count()); |
| 374 | ASSERT_EQ(0, statistics->num_values()); |
| 375 | ASSERT_EQ(0, statistics->distinct_count()); |
| 376 | ASSERT_EQ("", statistics->EncodeMin()); |
| 377 | ASSERT_EQ("", statistics->EncodeMax()); |
| 378 | } |
| 379 | |
| 380 | void TestMerge() { |
| 381 | int num_null[2]; |
no test coverage detected