mirror of
https://github.com/codeflash-ai/codeflash.git
synced 2026-05-04 18:25:17 +00:00
docs: add docstring to TestResults.get_test_pass_fail_report_by_type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4b8effa07b
commit
2b159b489d
1 changed files with 1 additions and 0 deletions
|
|
@ -914,6 +914,7 @@ class TestResults(BaseModel): # noqa: PLW1641
|
|||
return max(test_result.loop_index for test_result in self.test_results)
|
||||
|
||||
def get_test_pass_fail_report_by_type(self) -> dict[TestType, dict[str, int]]:
|
||||
"""Aggregate pass/fail counts for the first loop iteration, grouped by test type."""
|
||||
report: dict[TestType, dict[str, int]] = {tt: {"passed": 0, "failed": 0} for tt in TestType}
|
||||
for test_result in self.test_results:
|
||||
if test_result.loop_index != 1:
|
||||
|
|
|
|||
Loading…
Reference in a new issue