Helper: build a FileContent from a code string.
(code: str, path: str = "test.h")
| 17 | |
| 18 | |
| 19 | def _make_content(code: str, path: str = "test.h") -> FileContent: |
| 20 | """Helper: build a FileContent from a code string.""" |
| 21 | lines = code.splitlines() |
| 22 | return FileContent(path=path, content=code, lines=lines) |
| 23 | |
| 24 | |
| 25 | def _get_violations(code: str) -> list[tuple[int, str]]: |
no test coverage detected