| 39 | |
| 40 | template <typename T> |
| 41 | void CheckUIntWidth(const std::vector<T>& values, uint8_t expected_width) { |
| 42 | for (const uint8_t min_width : all_widths) { |
| 43 | uint8_t width = |
| 44 | DetectUIntWidth(values.data(), static_cast<int64_t>(values.size()), min_width); |
| 45 | ASSERT_EQ(width, std::max(min_width, expected_width)); |
| 46 | width = DetectUIntWidth(values.data(), nullptr, static_cast<int64_t>(values.size()), |
| 47 | min_width); |
| 48 | ASSERT_EQ(width, std::max(min_width, expected_width)); |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | template <typename T> |
| 53 | void CheckUIntWidth(const std::vector<T>& values, const std::vector<uint8_t>& valid_bytes, |
no test coverage detected