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

Function determineStatusFromOverall

cmd/validate/vsa.go:1275–1280  ·  view source on GitHub ↗

determineStatusFromOverall extracts SUCCESS or FAILURE from overall result string

(overall string)

Source from the content-addressed store, hash-verified

1273
1274// determineStatusFromOverall extracts SUCCESS or FAILURE from overall result string
1275func determineStatusFromOverall(overall string) string {
1276 if strings.Contains(overall, "PASSED") {
1277 return statusSuccess
1278 }
1279 return statusFailure
1280}
1281
1282// toText converts ComponentResultsDisplay to text format using existing String() methods
1283// This reuses the existing formatting logic and avoids code duplication

Callers 2

toStatusMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected