MCPcopy Create free account
hub / github.com/RustPython/RustPython / countTestCases

Method countTestCases

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

Source from the content-addressed store, hash-verified

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

Callers 1

test_basetestsuiteMethod · 0.95

Calls 1

countTestCasesMethod · 0.45

Tested by 1

test_basetestsuiteMethod · 0.76