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

Function TestBuildHeaderDisplay_Integration

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

Source from the content-addressed store, hash-verified

2044}
2045
2046func TestBuildHeaderDisplay_Integration(t *testing.T) {
2047 // Test that buildHeaderDisplay creates correct format when used with String()
2048 timestamp := time.Date(2024, 3, 20, 14, 25, 30, 0, time.UTC)
2049 header := buildHeaderDisplay(timestamp)
2050 output := header.String()
2051
2052 expected := "=== VALIDATE VSA RESULT — 2024-03-20T14:25:30Z ===\n"
2053 assert.Equal(t, expected, output)
2054}
2055
2056func TestBuildResultDisplay(t *testing.T) {
2057 tests := []struct {

Callers

nothing calls this directly

Calls 2

buildHeaderDisplayFunction · 0.85
StringMethod · 0.45

Tested by

no test coverage detected