MCPcopy Index your code
hub / github.com/python/cpython / test_glob_recursive

Method test_glob_recursive

Lib/test/test_zipfile/_path/test_path.py:483–488  ·  view source on GitHub ↗
(self, alpharep)

Source from the content-addressed store, hash-verified

481
482 @pass_alpharep
483 def test_glob_recursive(self, alpharep):
484 root = zipfile.Path(alpharep)
485 files = root.glob("**/*.txt")
486 assert all(each.match("*.txt") for each in files)
487
488 assert list(root.glob("**/*.txt")) == list(root.rglob("*.txt"))
489
490 @pass_alpharep
491 def test_glob_dirs(self, alpharep):

Callers

nothing calls this directly

Calls 4

globMethod · 0.95
rglobMethod · 0.95
listClass · 0.85
matchMethod · 0.45

Tested by

no test coverage detected