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

Method String

cmd/validate/vsa.go:951–967  ·  view source on GitHub ↗

String formats the Result section for display

()

Source from the content-addressed store, hash-verified

949
950// String formats the Result section for display
951func (r ResultDisplay) String() string {
952 var b strings.Builder
953 b.WriteString("Result\n")
954 b.WriteString(fmt.Sprintf(" Overall: %s\n", r.Overall))
955
956 if r.Fallback != "" {
957 b.WriteString(fmt.Sprintf(" Fallback: %s\n", r.Fallback))
958 }
959
960 b.WriteString(fmt.Sprintf(" Images (%d):\n", r.ImageCount))
961 for _, line := range r.ImageLines {
962 b.WriteString(line)
963 b.WriteString("\n")
964 }
965
966 return b.String()
967}
968
969// buildVSASummaryDisplay creates a VSASummaryDisplay from AllSectionsData
970func buildVSASummaryDisplay(data AllSectionsData) VSASummaryDisplay {

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected