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

Function _add_test_file

tests/commands/try_repo_test.py:33–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

31
32
33def _add_test_file():
34 open('test-file', 'a').close()
35 cmd_output('git', 'add', '.')
36
37
38def _run_try_repo(tempdir_factory, **kwargs):

Callers 4

_run_try_repoFunction · 0.85
test_try_repo_bare_repoFunction · 0.85

Calls 1

cmd_outputFunction · 0.90

Tested by

no test coverage detected