(t *testing.T)
| 2242 | } |
| 2243 | |
| 2244 | func 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 | |
| 2266 | func TestBuildVSASummaryDisplay(t *testing.T) { |
| 2267 | tests := []struct { |
nothing calls this directly
no test coverage detected