(t: dict)
| 291 | # Root level |
| 292 | # Count total tests in tree |
| 293 | def count_tests(t: dict) -> int: |
| 294 | total = len(t.get("tests", [])) |
| 295 | for c in t.get("children", []): |
| 296 | total += count_tests(c) |
| 297 | return total |
| 298 | |
| 299 | total = count_tests(tree) |
| 300 | if total == 0 and not children: |
no test coverage detected