(
self, content: str, path: str = "src/fl/test.h"
)
| 106 | """Verify pre-compiled regex detects .cpp includes.""" |
| 107 | |
| 108 | def _check( |
| 109 | self, content: str, path: str = "src/fl/test.h" |
| 110 | ) -> list[tuple[int, str]]: |
| 111 | checker = CppIncludeChecker() |
| 112 | checker.check_file_content(_make(content, path)) |
| 113 | return checker.violations.get(path, []) |
| 114 | |
| 115 | def test_detects_cpp_include(self): |
| 116 | violations = self._check('#include "foo.cpp"\nint x;') |
no test coverage detected