(mode, code, diagnostics, rows)
| 101 | |
| 102 | |
| 103 | def verdict(mode, code, diagnostics, rows): |
| 104 | if mode == "control": |
| 105 | problems = [] |
| 106 | if code != 0 or diagnostics: |
| 107 | problems.append("unrestricted positive child caused parent accounting failure") |
| 108 | if not complete_rows(rows): |
| 109 | problems.append("unrestricted positive reducer rows were not complete") |
| 110 | return problems, False |
| 111 | if code == 0: |
| 112 | if diagnostics or not complete_rows(rows): |
| 113 | raise common.Infrastructure("zero-status restricted run did not demonstrate the frozen baseline false success") |
| 114 | return ["valid native marker-open failure was silently accepted by original parent"], True |
| 115 | if len(diagnostics) != 1: |
| 116 | raise common.Infrastructure("nonzero parent status lacks exactly one original-parent accounting diagnostic") |
| 117 | required = {TESTS[0], "*"} |
| 118 | problems = [] |
| 119 | if not required <= set(rows) or not set(rows) <= set(TESTS) | {"*"}: |
| 120 | problems.append("actual reducer omitted fixture/setup or emitted unrelated rows") |
| 121 | for key, row in rows.items(): |
| 122 | if row["status"] != "incomplete" or "suite did not exit 0" not in row["reason"].split("; "): |
| 123 | problems.append("actual reducer did not retain suite failure floor: " + key) |
| 124 | return problems, False |
| 125 | |
| 126 | |
| 127 | def run_case(root, mode, inputs): |
no test coverage detected