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

Function TestBuildResultDisplay_Integration

cmd/validate/vsa_test.go:2244–2264  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

2242}
2243
2244func TestBuildResultDisplay_Integration(t *testing.T) {
2245 // Test end-to-end: build from AllSectionsData and format with String()
2246 data := AllSectionsData{
2247 OverallPassed: true,
2248 FallbackUsed: false,
2249 TotalImages: 1,
2250 ImageStatuses: []ImageStatus{
2251 {Index: 1, Digest: "abc12345", VSAStatus: "PASSED", FallbackStatus: ""},
2252 },
2253 }
2254
2255 result := buildResultDisplay(data)
2256 output := result.String()
2257
2258 expected := `Result
2259 Overall: ✅ PASSED
2260 Images (1):
2261 [1] …abc12345 VSA=PASSED
2262`
2263 assert.Equal(t, expected, output)
2264}
2265
2266func TestBuildVSASummaryDisplay(t *testing.T) {
2267 tests := []struct {

Callers

nothing calls this directly

Calls 2

buildResultDisplayFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected