| 427 | } |
| 428 | |
| 429 | void TestReset() { |
| 430 | this->GenerateData(1000); |
| 431 | |
| 432 | auto statistics = MakeStatistics<TestType>(this->schema_.Column(0)); |
| 433 | statistics->Update(this->values_ptr_, this->values_.size(), 0); |
| 434 | ASSERT_EQ(this->values_.size(), statistics->num_values()); |
| 435 | |
| 436 | statistics->Reset(); |
| 437 | ASSERT_TRUE(statistics->HasNullCount()); |
| 438 | ASSERT_FALSE(statistics->HasMinMax()); |
| 439 | ASSERT_FALSE(statistics->HasDistinctCount()); |
| 440 | ASSERT_EQ(0, statistics->null_count()); |
| 441 | ASSERT_EQ(0, statistics->num_values()); |
| 442 | ASSERT_EQ(0, statistics->distinct_count()); |
| 443 | ASSERT_EQ("", statistics->EncodeMin()); |
| 444 | ASSERT_EQ("", statistics->EncodeMax()); |
| 445 | } |
| 446 | |
| 447 | void TestMerge() { |
| 448 | int num_null[2]; |
no test coverage detected