MCPcopy 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
43def 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

PrefixClass · 0.90
starMethod · 0.80

Tested by

no test coverage detected