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

Method countTestCases

Lib/unittest/suite.py:37–42  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35 return iter(self._tests)
36
37 def countTestCases(self):
38 cases = self._removed_tests
39 for test in self:
40 if test:
41 cases += test.countTestCases()
42 return cases
43
44 def addTest(self, test):
45 # sanity checks

Callers 1

test_basetestsuiteMethod · 0.95

Calls 1

countTestCasesMethod · 0.45

Tested by 1

test_basetestsuiteMethod · 0.76