| 1100 | |
| 1101 | template <> |
| 1102 | void TestStatisticsSortOrder<Int32Type>::SetValues() { |
| 1103 | for (int i = 0; i < NUM_VALUES; i++) { |
| 1104 | values_[i] = i - 5; // {-5, -4, -3, -2, -1, 0, 1, 2, 3, 4}; |
| 1105 | } |
| 1106 | |
| 1107 | // Write UINT32 min/max values |
| 1108 | stats_[0] |
| 1109 | .set_min(std::string(reinterpret_cast<const char*>(&values_[5]), sizeof(c_type))) |
| 1110 | .set_max(std::string(reinterpret_cast<const char*>(&values_[4]), sizeof(c_type))); |
| 1111 | stats_[0].is_max_value_exact = true; |
| 1112 | stats_[0].is_min_value_exact = true; |
| 1113 | |
| 1114 | // Write INT32 min/max values |
| 1115 | stats_[1] |
| 1116 | .set_min(std::string(reinterpret_cast<const char*>(&values_[0]), sizeof(c_type))) |
| 1117 | .set_max(std::string(reinterpret_cast<const char*>(&values_[9]), sizeof(c_type))); |
| 1118 | stats_[1].is_max_value_exact = true; |
| 1119 | stats_[1].is_min_value_exact = true; |
| 1120 | } |
| 1121 | |
| 1122 | // TYPE::INT64 |
| 1123 | template <> |
no test coverage detected