| 23 | |
| 24 | |
| 25 | class CythonCoveragePlugin(CoveragePlugin): |
| 26 | def configure(self, config): |
| 27 | self.exclude = config.get_option("report:exclude_lines") |
| 28 | |
| 29 | def file_tracer(self, filename): |
| 30 | filename = canonical_filename(filename) |
| 31 | ext = filename.suffix |
| 32 | if ext in CYTHON_EXTENSIONS: |
| 33 | return CythonFileTracer(str(filename)) |
| 34 | return None |
| 35 | |
| 36 | def file_reporter(self, filename): |
| 37 | filename = canonical_filename(filename) |
| 38 | ext = filename.suffix |
| 39 | if ext in CYTHON_EXTENSIONS: |
| 40 | return CythonFileReporter(str(filename), self.exclude) |
| 41 | return None |
| 42 | |
| 43 | |
| 44 | class CythonFileTracer(FileTracer): |
no outgoing calls
no test coverage detected
searching dependent graphs…