(report *CrossRunAuditReport)
| 290 | } |
| 291 | |
| 292 | func renderPrettyErrorTrend(report *CrossRunAuditReport) { |
| 293 | et := report.ErrorTrend |
| 294 | if et.TotalErrors == 0 && et.TotalWarnings == 0 { |
| 295 | return |
| 296 | } |
| 297 | fmt.Fprintln(os.Stderr, console.FormatInfoMessage("Error Trend")) |
| 298 | fmt.Fprintf(os.Stderr, " Runs with errors: %d/%d (%.0f%%)\n", |
| 299 | et.RunsWithErrors, report.RunsAnalyzed, |
| 300 | safePercent(et.RunsWithErrors, report.RunsAnalyzed)) |
| 301 | fmt.Fprintf(os.Stderr, " Total errors: %d (avg=%.2f/run)\n", et.TotalErrors, et.AvgErrorsPerRun) |
| 302 | if et.TotalWarnings > 0 { |
| 303 | fmt.Fprintf(os.Stderr, " Total warnings: %d (%d runs)\n", et.TotalWarnings, et.RunsWithWarnings) |
| 304 | } |
| 305 | fmt.Fprintln(os.Stderr) |
| 306 | } |
| 307 | |
| 308 | func renderPrettyDomainInventory(report *CrossRunAuditReport) { |
| 309 | if len(report.DomainInventory) == 0 { |
no test coverage detected