Code
Hub
Trending
Following
Digest
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ test_path
Function
test_path
tests/prefix_test.py:25–28 ·
view source on GitHub ↗
(prefix, path_end, expected_output)
Source
from the content-addressed store, hash-verified
23
),
24
)
25
def
test_path(prefix, path_end, expected_output):
26
instance = Prefix(prefix)
27
ret = instance.path(path_end)
28
assert ret == expected_output
29
30
31
def
test_path_multiple_args():
Callers
nothing calls this directly
Calls
2
path
Method · 0.95
Prefix
Class · 0.90
Tested by
no test coverage detected