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

Method test_coverage

Lib/test/test_regrtest.py:1232–1239  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1230 self.check_line(output, regex)
1231
1232 def test_coverage(self):
1233 # test --coverage
1234 test = self.create_test('coverage')
1235 output = self.run_tests("--coverage", test)
1236 self.check_executed_tests(output, [test], stats=1)
1237 regex = (r'lines +cov% +module +\(path\)\n'
1238 r'(?: *[0-9]+ *[0-9]{1,2}\.[0-9]% *[^ ]+ +\([^)]+\)+)+')
1239 self.check_line(output, regex)
1240
1241 def test_wait(self):
1242 # test --wait

Callers

nothing calls this directly

Calls 4

run_testsMethod · 0.95
create_testMethod · 0.80
check_executed_testsMethod · 0.80
check_lineMethod · 0.80

Tested by

no test coverage detected