MCPcopy 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
37def test_exists(tmpdir):
38 assert not Prefix(str(tmpdir)).exists('foo')
39 tmpdir.ensure('foo')
40 assert Prefix(str(tmpdir)).exists('foo')
41
42
43def test_star(tmpdir):

Callers

nothing calls this directly

Calls 2

PrefixClass · 0.90
existsMethod · 0.80

Tested by

no test coverage detected