Helper: write an extension-less file with ``content`` and return its path.
(self, tmp_path: Path, name: str, content: str)
| 24 | # --- Shebang detection for extension-less Unix scripts (#237) --- |
| 25 | |
| 26 | def _write_shebang_file(self, tmp_path: Path, name: str, content: str) -> Path: |
| 27 | """Helper: write an extension-less file with ``content`` and return its path.""" |
| 28 | p = tmp_path / name |
| 29 | p.write_text(content, encoding="utf-8") |
| 30 | return p |
| 31 | |
| 32 | def test_detect_shebang_bin_bash(self, tmp_path): |
| 33 | p = self._write_shebang_file( |
no outgoing calls
no test coverage detected