MCPcopy Index your code
hub / github.com/python/cpython / _decode_test_result

Function _decode_test_result

Lib/test/libregrtest/result.py:232–243  ·  view source on GitHub ↗
(data: dict[str, Any])

Source from the content-addressed store, hash-verified

230
231
232def _decode_test_result(data: dict[str, Any]) -> TestResult | dict[str, Any]:
233 if "__test_result__" in data:
234 data.pop('__test_result__')
235 if data['stats'] is not None:
236 data['stats'] = TestStats(**data['stats'])
237 if data['covered_lines'] is not None:
238 data['covered_lines'] = [
239 tuple(loc) for loc in data['covered_lines']
240 ]
241 return TestResult(**data)
242 else:
243 return data

Callers

nothing calls this directly

Calls 3

TestStatsClass · 0.85
TestResultClass · 0.70
popMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…