• Chris Withers's avatar
    Mock 100% coverage (GH-13045) · adbf178e
    Chris Withers yazdı
    This was achieved by:
    * moving many pass statements in tests onto their own lines, so they pass line coverage and can match an easy ignore pattern if branch coverage is added later.
    * removing code that cannot be reached.
    * removing long-disabled tests.
    * removing unused code.
    * adding tests for uncovered code
    
    It turned out that removing `if __name__ == '__main__'` blocks that run unittest.main() at the bottom of test files was surprisingly contentious, so they remain and can be filtered out with an appropriate .coveragerc.
    adbf178e
Adı
Son kayıt (commit)
Son güncelleme
..
testmock Loading commit data...
__init__.py Loading commit data...
__main__.py Loading commit data...
_test_warnings.py Loading commit data...
dummy.py Loading commit data...
support.py Loading commit data...
test_assertions.py Loading commit data...
test_break.py Loading commit data...
test_case.py Loading commit data...
test_discovery.py Loading commit data...
test_functiontestcase.py Loading commit data...
test_loader.py Loading commit data...
test_program.py Loading commit data...
test_result.py Loading commit data...
test_runner.py Loading commit data...
test_setups.py Loading commit data...
test_skipping.py Loading commit data...
test_suite.py Loading commit data...