MCPcopy Create free account
hub / github.com/mpi4py/mpi4py / CythonCoveragePlugin

Class CythonCoveragePlugin

conf/cycoverage.py:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23
24
25class 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
44class CythonFileTracer(FileTracer):

Callers 1

coverage_initFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…