(self, tmp_path)
| 83 | assert self.parser.detect_language(p) == "ruby" |
| 84 | |
| 85 | def test_detect_shebang_perl(self, tmp_path): |
| 86 | p = self._write_shebang_file( |
| 87 | tmp_path, "cgi-script", "#!/usr/bin/env perl\nprint 1;\n", |
| 88 | ) |
| 89 | assert self.parser.detect_language(p) == "perl" |
| 90 | |
| 91 | def test_detect_shebang_with_trailing_flags(self, tmp_path): |
| 92 | """``#!/bin/bash -e`` still maps to bash (flags ignored).""" |
nothing calls this directly
no test coverage detected