| 1033 | |
| 1034 | template <> |
| 1035 | void TestStatisticsSortOrder<Int32Type>::SetValues() { |
| 1036 | for (int i = 0; i < NUM_VALUES; i++) { |
| 1037 | values_[i] = i - 5; // {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4}; |
| 1038 | } |
| 1039 | |
| 1040 | // Write UINT32 min/max values |
| 1041 | stats_[0] |
| 1042 | .set_min(std::string(reinterpret_cast<const char*>(&values_[5]), sizeof(c_type))) |
| 1043 | .set_max(std::string(reinterpret_cast<const char*>(&values_[4]), sizeof(c_type))); |
| 1044 | stats_[0].is_max_value_exact = true; |
| 1045 | stats_[0].is_min_value_exact = true; |
| 1046 | |
| 1047 | // Write INT32 min/max values |
| 1048 | stats_[1] |
| 1049 | .set_min(std::string(reinterpret_cast<const char*>(&values_[0]), sizeof(c_type))) |
| 1050 | .set_max(std::string(reinterpret_cast<const char*>(&values_[9]), sizeof(c_type))); |
| 1051 | stats_[1].is_max_value_exact = true; |
| 1052 | stats_[1].is_min_value_exact = true; |
| 1053 | } |
| 1054 | |
| 1055 | // TYPE::INT64 |
| 1056 | template <> |
no test coverage detected