MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_rglob_pathlike

Method test_rglob_pathlike

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

Source from the content-addressed store, hash-verified

2976 self.assertEqual(set(p.glob('*')), set())
2977
2978 def test_rglob_pathlike(self):
2979 P = self.cls
2980 p = P(self.base, "dirC")
2981 pattern = "**/file*"
2982 expect = {p / "fileC", p / "dirD/fileD"}
2983 self.assertEqual(expect, set(p.rglob(P(pattern))))
2984 self.assertEqual(expect, set(p.rglob(FakePath(pattern))))
2985
2986 @needs_symlinks
2987 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