Refuse a register entry that is no regular file, and say data source in what task-bench prints

This commit is contained in:
2026-11-23 19:49:22 +01:00
parent c798278406
commit 44c0f13883
11 changed files with 94 additions and 63 deletions
+2 -2
View File
@@ -51,8 +51,8 @@ def digest(sides: dict[Side, str], table: list[str], tasks: list[TaskRuns], is_f
def told(task: TaskRuns, is_file: typing.Callable[[str], bool], noun: str) -> list[str]:
"""The digest's section on task, which its heading calls by noun: a bug where it names the bug's file, and a feature or a
data source otherwise."""
"""The digest's section on task, under a heading that calls the task by noun. A task with a file is a bug; any other is a
feature or a data source."""
passing, failing = [run for run in task.runs if run.passed], [run for run in task.runs if not run.passed]
passed = f"{len(passing)} of the {len(task.runs)} runs passed." if failing else f"The {counted(len(task.runs), 'run')} passed."
# Only a bug has a file of its own. A feature has none, so no file a run read counts as a decoy.