(self, tmp_path)
| 62 | assert self.parser.detect_language(p) == "python" |
| 63 | |
| 64 | def test_detect_shebang_node(self, tmp_path): |
| 65 | p = self._write_shebang_file( |
| 66 | tmp_path, "cli", "#!/usr/bin/env node\nconsole.log(1);\n", |
| 67 | ) |
| 68 | assert self.parser.detect_language(p) == "javascript" |
| 69 | |
| 70 | def test_detect_shebang_env_dash_s_flag(self, tmp_path): |
| 71 | """``#!/usr/bin/env -S node --flag`` (Linux -S) resolves to the interpreter.""" |
nothing calls this directly
no test coverage detected