shouldPrintFallbackHeader determines if the fallback header should be printed The header should only be printed when using text format or when no format is specified (which defaults to text in WriteReport)
(outputFormats []string)
| 1181 | // The header should only be printed when using text format or when no format is specified |
| 1182 | // (which defaults to text in WriteReport) |
| 1183 | func shouldPrintFallbackHeader(outputFormats []string) bool { |
| 1184 | // If no output formats specified, WriteReport defaults to text |
| 1185 | if len(outputFormats) == 0 { |
| 1186 | return true |
| 1187 | } |
| 1188 | |
| 1189 | // Check if "text" format is in the output formats |
| 1190 | return validate_utils.ContainsOutputFormat(outputFormats, outputFormatText) |
| 1191 | } |
| 1192 | |
| 1193 | // toVSASectionsReport converts ComponentResultsDisplay to VSASectionsReport |
| 1194 | func (d ComponentResultsDisplay) toVSASectionsReport() VSASectionsReport { |
no outgoing calls
no test coverage detected