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

Method test_detect_shebang_perl

tests/test_parser.py:85–89  ·  view source on GitHub ↗
(self, tmp_path)

Source from the content-addressed store, hash-verified

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)."""

Callers

nothing calls this directly

Calls 2

_write_shebang_fileMethod · 0.95
detect_languageMethod · 0.80

Tested by

no test coverage detected