| 61 | |
| 62 | template <typename T> |
| 63 | void CheckIntWidth(const std::vector<T>& values, uint8_t expected_width) { |
| 64 | for (const uint8_t min_width : all_widths) { |
| 65 | uint8_t width = |
| 66 | DetectIntWidth(values.data(), static_cast<int64_t>(values.size()), min_width); |
| 67 | ASSERT_EQ(width, std::max(min_width, expected_width)); |
| 68 | width = DetectIntWidth(values.data(), nullptr, static_cast<int64_t>(values.size()), |
| 69 | min_width); |
| 70 | ASSERT_EQ(width, std::max(min_width, expected_width)); |
| 71 | } |
| 72 | } |
| 73 | |
| 74 | template <typename T> |
| 75 | void CheckIntWidth(const std::vector<T>& values, const std::vector<uint8_t>& valid_bytes, |
no test coverage detected