MCPcopy Create free account
hub / github.com/Graphify-Labs/graphify / _pct

Function _pct

scripts/theme_gate.py:611–615  ·  view source on GitHub ↗
(r: dict)

Source from the content-addressed store, hash-verified

609
610
611def _pct(r: dict) -> str:
612 if r["total"] == 0:
613 return "n/a (0 cases)"
614 return f"{r['covered']}/{r['total']} = {100 * r['covered'] // r['total']}%" if r["covered"] < r["total"] \
615 else f"{r['covered']}/{r['total']} = 100%"
616
617
618def main(argv: list[str] | None = None) -> int:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected