Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ test_exists
Function
test_exists
tests/prefix_test.py:37–40 ·
view source on GitHub ↗
(tmpdir)
Source
from the content-addressed store, hash-verified
35
36
37
def
test_exists(tmpdir):
38
assert not Prefix(str(tmpdir)).exists(
'foo'
)
39
tmpdir.ensure(
'foo'
)
40
assert Prefix(str(tmpdir)).exists(
'foo'
)
41
42
43
def
test_star(tmpdir):
Callers
nothing calls this directly
Calls
2
Prefix
Class · 0.90
exists
Method · 0.80
Tested by
no test coverage detected