| Total Complexity | 3 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 1 | """Plugins to extract coverage data from various formats.""" |
||
| 26 | 1 | class CoveragePy(BasePlugin): |
|
| 27 | """Coverage extracter for the coverage.py format.""" |
||
| 28 | |||
| 29 | 1 | def match(self, cwd): |
|
| 30 | 1 | return '.coverage' in os.listdir(cwd) |
|
| 31 | |||
| 32 | 1 | def run(self, cwd): |
|
| 33 | 1 | os.chdir(cwd) |
|
| 34 | |||
| 35 | 1 | cov = coverage.Coverage() |
|
|
|
|||
| 36 | 1 | cov.load() |
|
| 37 | |||
| 38 | 1 | with open(os.devnull, 'w') as ignore: |
|
| 39 | 1 | total = cov.report(file=ignore) |
|
| 40 | |||
| 41 | return total |
||
| 42 |
This check looks for calls to members that are non-existent. These calls will fail.
The member could have been renamed or removed.