(auditData AuditData, runOutputDir string, jsonOutput, verbose bool)
| 843 | } |
| 844 | |
| 845 | func renderAuditOutput(auditData AuditData, runOutputDir string, jsonOutput, verbose bool) error { |
| 846 | if jsonOutput { |
| 847 | if err := renderJSON(auditData); err != nil { |
| 848 | return fmt.Errorf("failed to render JSON output: %w", err) |
| 849 | } |
| 850 | return nil |
| 851 | } |
| 852 | renderConsole(auditData, runOutputDir) |
| 853 | if verbose { |
| 854 | auditLog.Printf("Rendered console audit report for %s", runOutputDir) |
| 855 | } |
| 856 | return nil |
| 857 | } |
| 858 | |
| 859 | func renderAuditGatewayMetrics(runOutputDir string, verbose bool) { |
| 860 | gatewayMetrics, err := parseGatewayLogs(runOutputDir, verbose) |
no test coverage detected