cpython/Lib/unittest/test/testmock
Chris Withers adbf178e49
Mock 100% coverage (GH-13045)
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.
2019-05-01 23:04:04 +01:00
..
__init__.py
__main__.py
support.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testcallable.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testhelpers.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testmagicmethods.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testmock.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testpatch.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testsealable.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00
testsentinel.py
testwith.py Mock 100% coverage (GH-13045) 2019-05-01 23:04:04 +01:00