(t *testing.T)
| 159 | } |
| 160 | |
| 161 | func 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 | |
| 180 | func TestUploadVSAEnvelope_InvalidEnvelopePath(t *testing.T) { |
| 181 | ctx := context.Background() |
nothing calls this directly
no test coverage detected