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

Function TestUploadVSAEnvelope_EmptyConfigs

internal/validate/vsa/storage_test.go:161–178  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

159}
160
161func TestUploadVSAEnvelope_EmptyConfigs(t *testing.T) {
162 // Create a temporary file for the envelope
163 tempFile, err := os.CreateTemp("", "test-envelope-*.json")
164 require.NoError(t, err)
165 defer os.Remove(tempFile.Name())
166
167 // Write test content
168 testContent := `{"test":"envelope"}`
169 _, err = tempFile.WriteString(testContent)
170 require.NoError(t, err)
171 tempFile.Close()
172
173 envelopePath := tempFile.Name()
174
175 ctx := context.Background()
176 err = UploadVSAEnvelope(ctx, envelopePath, []string{}, nil)
177 assert.NoError(t, err)
178}
179
180func TestUploadVSAEnvelope_InvalidEnvelopePath(t *testing.T) {
181 ctx := context.Background()

Callers

nothing calls this directly

Calls 3

UploadVSAEnvelopeFunction · 0.85
NameMethod · 0.65
CloseMethod · 0.65

Tested by

no test coverage detected