Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/pre-commit/pre-commit
/ test_star
Function
test_star
tests/prefix_test.py:43–46 ·
view source on GitHub ↗
(tmpdir)
Source
from the content-addressed store, hash-verified
41
42
43
def
test_star(tmpdir):
44
for
f in (
'a.txt'
,
'b.txt'
,
'c.py'
):
45
tmpdir.join(f).ensure()
46
assert set(Prefix(str(tmpdir)).star(
'.txt'
)) == {
'a.txt'
,
'b.txt'
}
Callers
nothing calls this directly
Calls
2
Prefix
Class · 0.90
star
Method · 0.80
Tested by
no test coverage detected