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

Function _list_cases

Lib/test/libregrtest/findtests.py:82–90  ·  view source on GitHub ↗
(suite: unittest.TestSuite)

Source from the content-addressed store, hash-verified

80
81
82def _list_cases(suite: unittest.TestSuite) -> None:
83 for test in suite:
84 if isinstance(test, unittest.loader._FailedTest): # type: ignore[attr-defined]
85 continue
86 if isinstance(test, unittest.TestSuite):
87 _list_cases(test)
88 elif isinstance(test, unittest.TestCase):
89 if match_test(test):
90 print(test.id())
91
92def list_cases(tests: TestTuple, *,
93 match_tests: TestFilter | None = None,

Callers 1

list_casesFunction · 0.85

Calls 2

match_testFunction · 0.85
idMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…