MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / test_output

Function test_output

tests/test_coverage_flush.py:182–191  ·  view source on GitHub ↗
(stdout)

Source from the content-addressed store, hash-verified

180
181
182def test_output(stdout):
183 clean = ANSI.sub("", stdout)
184 starts = re.findall(r"(?m)^ " + TEST + r"\b", clean)
185 rows = re.findall(r"(?m)^ ([A-Za-z_][A-Za-z0-9_]*)[ \t]+(PASS|FAIL|SKIP)\b", clean)
186 exact_passes = re.findall(r"(?m)^ " + TEST + r"[ \t]+PASS[ \t]*$", clean)
187 summaries = re.findall(
188 r"(?m)^[ \t]*(\d+) passed(?:, (\d+) failed)?(?:, (\d+) skipped)?"
189 r"(?:, (\d+) deselected)?[ \t]*$", clean)
190 return {"started": len(starts), "passed": len(exact_passes), "rows": rows,
191 "summaries": [[int(value or 0) for value in row] for row in summaries]}
192
193
194def expected_test_once(observation):

Callers 1

classifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected