MCPcopy
hub / github.com/numpy/numpy / wrap

Method wrap

tools/c_coverage/c_coverage_report.py:31–42  ·  view source on GitHub ↗
(self, source, outfile)

Source from the content-addressed store, hash-verified

29 self.lines = lines
30
31 def wrap(self, source, outfile):
32 for i, (c, t) in enumerate(HtmlFormatter.wrap(self, source, outfile)):
33 as_functions = self.lines.get(i - 1, None)
34 if as_functions is not None:
35 title = quoteattr('as ' + ', '.join(as_functions))
36 count = len(as_functions)
37 yield 0, f'<div title={title} style="background: #ccffcc">[{count:2}]'
38 else:
39 yield 0, ' '
40 yield c, t
41 if as_functions is not None:
42 yield 0, '</div>'
43
44
45class SourceFile:

Callers 8

linspaceFunction · 0.80
_wrapitFunction · 0.80
deleteFunction · 0.80
insertFunction · 0.80
ediff1dFunction · 0.80
_unique1dFunction · 0.80
apply_along_axisFunction · 0.80
diagflatFunction · 0.80

Calls 2

joinMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected