(code: str, path: str = "test.h")
| 13 | |
| 14 | |
| 15 | def _get_violations(code: str, path: str = "test.h") -> list[tuple[int, str]]: |
| 16 | checker = SingletonInHeadersChecker() |
| 17 | fc = _make_content(code, path) |
| 18 | if not checker.should_process_file(path): |
| 19 | return [] |
| 20 | checker.check_file_content(fc) |
| 21 | return checker.violations.get(path, []) |
| 22 | |
| 23 | |
| 24 | class TestSingletonInHeadersChecker(unittest.TestCase): |
no test coverage detected