(report *CrossRunAuditReport)
| 306 | } |
| 307 | |
| 308 | func renderPrettyDomainInventory(report *CrossRunAuditReport) { |
| 309 | if len(report.DomainInventory) == 0 { |
| 310 | return |
| 311 | } |
| 312 | fmt.Fprintln(os.Stderr, console.FormatInfoMessage(fmt.Sprintf("Domain Inventory (%d domains)", len(report.DomainInventory)))) |
| 313 | for _, entry := range report.DomainInventory { |
| 314 | fmt.Fprintf(os.Stderr, " %s %-45s %s seen=%d/%d allowed=%d blocked=%d\n", |
| 315 | firewallStatusEmoji(entry.OverallStatus), entry.Domain, entry.OverallStatus, |
| 316 | entry.SeenInRuns, report.RunsAnalyzed, entry.TotalAllowed, entry.TotalBlocked) |
| 317 | } |
| 318 | fmt.Fprintln(os.Stderr) |
| 319 | } |
| 320 | |
| 321 | func renderPrettyDrain3Insights(insights []ObservabilityInsight) { |
| 322 | if len(insights) == 0 { |
no test coverage detected