MCPcopy Index your code
hub / github.com/pre-commit/pre-commit / test_normalize_cmd_shebang

Function test_normalize_cmd_shebang

tests/parse_shebang_test.py:135–138  ·  view source on GitHub ↗
(in_tmpdir)

Source from the content-addressed store, hash-verified

133
134
135def test_normalize_cmd_shebang(in_tmpdir):
136 us = sys.executable.replace(os.sep, '/')
137 path = write_executable(us)
138 assert parse_shebang.normalize_cmd((path,)) == (us, path)
139
140
141def test_normalize_cmd_PATH_shebang_full_path(in_tmpdir):

Callers

nothing calls this directly

Calls 1

write_executableFunction · 0.85

Tested by

no test coverage detected