MCPcopy Index your code
hub / github.com/tirth8205/code-review-graph / test_detect_shebang_ruby

Method test_detect_shebang_ruby

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

Source from the content-addressed store, hash-verified

77 assert self.parser.detect_language(p) == "javascript"
78
79 def test_detect_shebang_ruby(self, tmp_path):
80 p = self._write_shebang_file(
81 tmp_path, "rake-task", "#!/usr/bin/env ruby\nputs 1\n",
82 )
83 assert self.parser.detect_language(p) == "ruby"
84
85 def test_detect_shebang_perl(self, tmp_path):
86 p = self._write_shebang_file(

Callers

nothing calls this directly

Calls 2

_write_shebang_fileMethod · 0.95
detect_languageMethod · 0.80

Tested by

no test coverage detected