toYAML converts ComponentResultsDisplay to YAML format
()
| 1252 | |
| 1253 | // toYAML converts ComponentResultsDisplay to YAML format |
| 1254 | func (d ComponentResultsDisplay) toYAML() ([]byte, error) { |
| 1255 | report := d.toVSASectionsReport() |
| 1256 | data, err := yaml.Marshal(&report) |
| 1257 | if err != nil { |
| 1258 | return nil, fmt.Errorf("failed to marshal to YAML: %w", err) |
| 1259 | } |
| 1260 | return data, nil |
| 1261 | } |
| 1262 | |
| 1263 | // toStatus converts ComponentResultsDisplay to status format (simple pass/fail JSON) |
| 1264 | func (d ComponentResultsDisplay) toStatus() ([]byte, error) { |
no test coverage detected