MCPcopy Create free account
hub / github.com/github/gh-aw / renderCrossRunReportPretty

Function renderCrossRunReportPretty

pkg/cli/audit_cross_run_render.go:205–219  ·  view source on GitHub ↗

renderCrossRunReportPretty outputs the cross-run report as formatted console output to stderr.

(report *CrossRunAuditReport)

Source from the content-addressed store, hash-verified

203
204// renderCrossRunReportPretty outputs the cross-run report as formatted console output to stderr.
205func renderCrossRunReportPretty(report *CrossRunAuditReport) {
206 crossRunRenderLog.Printf("Rendering cross-run report as pretty output: runs_analyzed=%d, runs_with_data=%d, deny_rate=%.1f%%",
207 report.RunsAnalyzed, report.RunsWithData, report.Summary.OverallDenyRate*100)
208 fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Audit Report — Cross-Run Analysis"))
209 fmt.Fprintln(os.Stderr)
210
211 renderPrettyExecutiveSummary(report)
212 renderPrettyMetricsTrend(report.MetricsTrend)
213 renderPrettyMCPHealth(report)
214 renderPrettyErrorTrend(report)
215 renderPrettyDomainInventory(report)
216 renderPrettyDrain3Insights(report.Drain3Insights)
217 renderPrettyPerRunBreakdown(report.PerRunBreakdown)
218 renderPrettyFinalStatus(report)
219}
220
221func renderPrettyExecutiveSummary(report *CrossRunAuditReport) {
222 fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Executive Summary"))

Callers 1

renderLogsOutputFunction · 0.85

Calls 10

FormatInfoMessageFunction · 0.92
renderPrettyMetricsTrendFunction · 0.85
renderPrettyMCPHealthFunction · 0.85
renderPrettyErrorTrendFunction · 0.85
renderPrettyFinalStatusFunction · 0.85
PrintfMethod · 0.45

Tested by

no test coverage detected