judge.final_table(attempt, digest, unit_tests, dependents)
The [final] table of a run.toml.
Parameters
| attempt |
int |
The attempt that produced the final module. |
required |
| digest |
str |
SHA-256 of the final module. |
required |
| unit_tests |
Tally |
The counts of its unit tests. |
required |
| dependents |
Tally |
The counts of its dependents. |
required |
Returns
|
dict[str, object] |
dict[str, object]: Exactly the keys of run_keys(..., "final")["final"]. |
Examples
from spotregen.judge import Tally, final_table
print(final_table(1, "0" * 64, Tally(2, 0, 0), Tally(1, 0, 0)))
{'attempt': 1, 'sha256': '0000000000000000000000000000000000000000000000000000000000000000', 'unit_tests_passed': 2, 'unit_tests_failed': 0, 'unit_tests_errors': 0, 'dependents_passed': 1, 'dependents_failed': 0}