Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
Indexed
MCP
copy
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
33
def
_add_test_file():
34
open(
'test-file'
,
'a'
).close()
35
cmd_output(
'git'
,
'add'
,
'.'
)
36
37
38
def
_run_try_repo(tempdir_factory, **kwargs):
Callers
4
_run_try_repo
Function · 0.85
test_try_repo_relative_path
Function · 0.85
test_try_repo_bare_repo
Function · 0.85
test_try_repo_specific_revision
Function · 0.85
Calls
1
cmd_output
Function · 0.90
Tested by
no test coverage detected