MCPcopy Index your code
hub / github.com/evalplus/evalplus / Capturing

Class Capturing

tools/tsr/coverage_init.py:15–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13
14
15class Capturing(list):
16 def __enter__(self):
17 self._stdout = sys.stdout
18 sys.stdout = self._stringio = StringIO()
19 return self
20
21 def __exit__(self, *args):
22 self.extend(self._stringio.getvalue().splitlines())
23 del self._stringio
24 sys.stdout = self._stdout
25
26
27def parse_lcov(outputs: List[str]):

Callers 1

test_code_coverageFunction · 0.70

Calls

no outgoing calls

Tested by 1

test_code_coverageFunction · 0.56