(code: str, path: str = _HEADER_PATH)
| 19 | |
| 20 | |
| 21 | def _violations(code: str, path: str = _HEADER_PATH) -> list[tuple[int, str]]: |
| 22 | checker = AsmJsLocationChecker() |
| 23 | if not checker.should_process_file(path): |
| 24 | return [] |
| 25 | checker.check_file_content(_make(code, path)) |
| 26 | return checker.violations.get(path, []) |
| 27 | |
| 28 | |
| 29 | class TestFileFiltering(unittest.TestCase): |
no test coverage detected