MCPcopy Create free account
hub / github.com/conforma/cli / toYAML

Method toYAML

cmd/validate/vsa.go:1254–1261  ·  view source on GitHub ↗

toYAML converts ComponentResultsDisplay to YAML format

()

Source from the content-addressed store, hash-verified

1252
1253// toYAML converts ComponentResultsDisplay to YAML format
1254func (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)
1264func (d ComponentResultsDisplay) toStatus() ([]byte, error) {

Callers 1

toFormatMethod · 0.95

Calls 2

toVSASectionsReportMethod · 0.95
ErrorfMethod · 0.65

Tested by

no test coverage detected