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

Function get_failed_tests

evalplus/evaluate.py:255–265  ·  view source on GitHub ↗
(stat, details, inputs)

Source from the content-addressed store, hash-verified

253 for res in task_results:
254
255 def get_failed_tests(stat, details, inputs) -> List[Any]:
256 if stat == PASS or not details:
257 return []
258
259 if test_details:
260 return [
261 inputs[i] for i in range(len(details)) if not details[i]
262 ]
263
264 # else => simply return the only and the last fail test
265 return [inputs[len(details) - 1]]
266
267 base_stat, base_details = res["base"]
268 base_fail_tests = get_failed_tests(

Callers 1

evaluateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected