MCPcopy Create free account
hub / github.com/RustPython/RustPython / count_tests

Function count_tests

scripts/update_lib/cmd_deps.py:293–297  ·  view source on GitHub ↗
(t: dict)

Source from the content-addressed store, hash-verified

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:

Callers 1

Calls 2

lenFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected