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

Method _check

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

Source from the content-addressed store, hash-verified

2921 def test_glob_case_sensitive(self):
2922 P = self.cls
2923 def _check(path, pattern, case_sensitive, expected):
2924 actual = {str(q) for q in path.glob(pattern, case_sensitive=case_sensitive)}
2925 expected = {str(P(self.base, q)) for q in expected}
2926 self.assertEqual(actual, expected)
2927 path = P(self.base)
2928 _check(path, "DIRB/FILE*", True, [])
2929 _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