MCPcopy Create free account
hub / github.com/doldecomp/mkdd / print_category

Function print_category

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

Source from the content-addressed store, hash-verified

2030 progress_print("Progress:")
2031
2032 def print_category(name: str, measures: Dict[str, Any]) -> None:
2033 total_code = measures.get("total_code", 0)
2034 matched_code = measures.get("matched_code", 0)
2035 matched_code_percent = measures.get("matched_code_percent", 0)
2036 total_data = measures.get("total_data", 0)
2037 matched_data = measures.get("matched_data", 0)
2038 matched_data_percent = measures.get("matched_data_percent", 0)
2039 total_functions = measures.get("total_functions", 0)
2040 matched_functions = measures.get("matched_functions", 0)
2041 complete_code_percent = measures.get("complete_code_percent", 0)
2042 total_units = measures.get("total_units", 0)
2043 complete_units = measures.get("complete_units", 0)
2044
2045 progress_print(
2046 f" {name}: {matched_code_percent:.2f}% matched, {complete_code_percent:.2f}% linked ({complete_units} / {total_units} files)"
2047 )
2048 progress_print(
2049 f" Code: {matched_code} / {total_code} bytes ({matched_functions} / {total_functions} functions)"
2050 )
2051 progress_print(
2052 f" Data: {matched_data} / {total_data} bytes ({matched_data_percent:.2f}%)"
2053 )
2054
2055 print_category("All", report_data["measures"])
2056 for category in report_data.get("categories", []):

Callers 1

calculate_progressFunction · 0.85

Calls 2

progress_printFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected