determineStatusFromReport determines overall status from VSAReport Prefers fallback result if available, otherwise uses VSA result
(report VSAReport, display ComponentResultsDisplay)
| 1417 | // determineStatusFromReport determines overall status from VSAReport |
| 1418 | // Prefers fallback result if available, otherwise uses VSA result |
| 1419 | func determineStatusFromReport(report VSAReport, display ComponentResultsDisplay) string { |
| 1420 | if report.Fallback != nil { |
| 1421 | // Fallback was used, use its success status |
| 1422 | if report.Fallback.Success { |
| 1423 | return statusSuccess |
| 1424 | } |
| 1425 | return statusFailure |
| 1426 | } |
| 1427 | // Use VSA result |
| 1428 | return determineStatusFromOverall(display.Result.Overall) |
| 1429 | } |
| 1430 | |
| 1431 | // captureFallbackText captures the text output from a fallback report |
| 1432 | func captureFallbackText(fallbackReport *applicationsnapshot.Report, fs afero.Fs) (string, error) { |
no test coverage detected