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

Function test_simple_case

tests/parse_shebang_test.py:26–30  ·  view source on GitHub ↗
(tmpdir)

Source from the content-addressed store, hash-verified

24
25
26def test_simple_case(tmpdir):
27 x = tmpdir.join('f')
28 x.write('#!/usr/bin/env echo')
29 make_executable(x.strpath)
30 assert parse_shebang.parse_filename(x.strpath) == ('echo',)
31
32
33def test_find_executable_full_path():

Callers

nothing calls this directly

Calls 1

make_executableFunction · 0.90

Tested by

no test coverage detected