MCPcopy Index your code
hub / github.com/numpy/numpy / mark_line

Method mark_line

tools/c_coverage/c_coverage_report.py:50–54  ·  view source on GitHub ↗
(self, lineno, as_func=None)

Source from the content-addressed store, hash-verified

48 self.lines = {}
49
50 def mark_line(self, lineno, as_func=None):
51 line = self.lines.setdefault(lineno, set())
52 if as_func is not None:
53 as_func = as_func.split("'", 1)[0]
54 line.add(as_func)
55
56 def write_text(self, fd):
57 with open(self.path, "r") as source:

Callers 1

collect_statsFunction · 0.80

Calls 2

splitMethod · 0.80
addMethod · 0.45

Tested by

no test coverage detected