MCPcopy
hub / github.com/tirth8205/code-review-graph / _write_shebang_file

Method _write_shebang_file

tests/test_parser.py:26–30  ·  view source on GitHub ↗

Helper: write an extension-less file with ``content`` and return its path.

(self, tmp_path: Path, name: str, content: str)

Source from the content-addressed store, hash-verified

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(

Calls

no outgoing calls

Tested by

no test coverage detected