(
self, content: str, path: str = "src/fl/test.cpp"
)
| 214 | """Verify pre-compiled regex detects numeric limit macros.""" |
| 215 | |
| 216 | def _check( |
| 217 | self, content: str, path: str = "src/fl/test.cpp" |
| 218 | ) -> list[tuple[int, str]]: |
| 219 | checker = NumericLimitMacroChecker() |
| 220 | checker.check_file_content(_make(content, path)) |
| 221 | return checker.violations.get(path, []) |
| 222 | |
| 223 | def test_detects_uint32_max(self): |
| 224 | violations = self._check("int x = UINT32_MAX;") |
no test coverage detected