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

Method test_rglob_pathlike

Lib/test/test_pathlib/test_pathlib.py:2969–2975  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2967 self.assertEqual(set(p.glob('*')), set())
2968
2969 def test_rglob_pathlike(self):
2970 P = self.cls
2971 p = P(self.base, "dirC")
2972 pattern = "**/file*"
2973 expect = {p / "fileC", p / "dirD/fileD"}
2974 self.assertEqual(expect, set(p.rglob(P(pattern))))
2975 self.assertEqual(expect, set(p.rglob(FakePath(pattern))))
2976
2977 @needs_symlinks
2978 def test_glob_recurse_symlinks_common(self):

Callers

nothing calls this directly

Calls 5

FakePathClass · 0.90
setFunction · 0.85
PClass · 0.70
assertEqualMethod · 0.45
rglobMethod · 0.45

Tested by

no test coverage detected