MCPcopy Create free account
hub / github.com/bfbbdecomp/bfbb / print_category

Function print_category

tools/project.py:1823–1844  ·  view source on GitHub ↗
(name: str, measures: Dict[str, Any])

Source from the content-addressed store, hash-verified

1821 progress_print("Progress:")
1822
1823 def print_category(name: str, measures: Dict[str, Any]) -> None:
1824 total_code = measures.get("total_code", 0)
1825 matched_code = measures.get("matched_code", 0)
1826 matched_code_percent = measures.get("matched_code_percent", 0)
1827 total_data = measures.get("total_data", 0)
1828 matched_data = measures.get("matched_data", 0)
1829 matched_data_percent = measures.get("matched_data_percent", 0)
1830 total_functions = measures.get("total_functions", 0)
1831 matched_functions = measures.get("matched_functions", 0)
1832 complete_code_percent = measures.get("complete_code_percent", 0)
1833 total_units = measures.get("total_units", 0)
1834 complete_units = measures.get("complete_units", 0)
1835
1836 progress_print(
1837 f" {name}: {matched_code_percent:.2f}% matched, {complete_code_percent:.2f}% linked ({complete_units} / {total_units} files)"
1838 )
1839 progress_print(
1840 f" Code: {matched_code} / {total_code} bytes ({matched_functions} / {total_functions} functions)"
1841 )
1842 progress_print(
1843 f" Data: {matched_data} / {total_data} bytes ({matched_data_percent:.2f}%)"
1844 )
1845
1846 print_category("All", report_data["measures"])
1847 for category in report_data.get("categories", []):

Callers 1

calculate_progressFunction · 0.85

Calls 1

progress_printFunction · 0.85

Tested by

no test coverage detected