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

Method _check

Lib/test/test_pathlib/test_pathlib.py:2914–2917  ·  view source on GitHub ↗
(path, pattern, case_sensitive, expected)

Source from the content-addressed store, hash-verified

2912 def test_glob_case_sensitive(self):
2913 P = self.cls
2914 def _check(path, pattern, case_sensitive, expected):
2915 actual = {str(q) for q in path.glob(pattern, case_sensitive=case_sensitive)}
2916 expected = {str(P(self.base, q)) for q in expected}
2917 self.assertEqual(actual, expected)
2918 path = P(self.base)
2919 _check(path, "DIRB/FILE*", True, [])
2920 _check(path, "DIRB/FILE*", False, ["dirB/fileB"])

Callers

nothing calls this directly

Calls 7

strFunction · 0.85
setFunction · 0.85
PClass · 0.70
globMethod · 0.45
assertEqualMethod · 0.45
countMethod · 0.45
rglobMethod · 0.45

Tested by

no test coverage detected