(
self, content: str, path: str = "src/fl/test.h"
)
| 251 | """Verify pre-compiled regex detects static locals in headers.""" |
| 252 | |
| 253 | def _check( |
| 254 | self, content: str, path: str = "src/fl/test.h" |
| 255 | ) -> list[tuple[int, str]]: |
| 256 | checker = StaticInHeaderChecker() |
| 257 | checker.check_file_content(_make(content, path)) |
| 258 | return checker.violations.get(path, []) |
| 259 | |
| 260 | def test_detects_static_local_in_header(self): |
| 261 | content = ( |
no test coverage detected