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

Function _run_try_repo

tests/commands/try_repo_test.py:38–42  ·  view source on GitHub ↗
(tempdir_factory, **kwargs)

Source from the content-addressed store, hash-verified

36
37
38def _run_try_repo(tempdir_factory, **kwargs):
39 repo = make_repo(tempdir_factory, 'modified_file_returns_zero_repo')
40 with cwd(git_dir(tempdir_factory)):
41 _add_test_file()
42 assert not try_repo(try_repo_opts(repo, **kwargs))
43
44
45def test_try_repo_repo_only(cap_out, tempdir_factory):

Callers 2

test_try_repo_repo_onlyFunction · 0.85

Calls 6

make_repoFunction · 0.90
cwdFunction · 0.90
git_dirFunction · 0.90
try_repoFunction · 0.90
_add_test_fileFunction · 0.85
try_repo_optsFunction · 0.85

Tested by

no test coverage detected