(t *testing.T)
| 134 | } |
| 135 | |
| 136 | func TestLoadRemoteFilesCorruptTar(t *testing.T) { |
| 137 | srv := newTarServer(t, []byte("this is not a tar archive")) |
| 138 | defer srv.Close() |
| 139 | |
| 140 | _, _, err := loadRemoteFiles(context.Background(), srv.URL) |
| 141 | require.Error(t, err) |
| 142 | assert.Contains(t, err.Error(), "failed to read tar header") |
| 143 | } |
| 144 | |
| 145 | func TestLoadRemoteFilesInvalidManifestJSON(t *testing.T) { |
| 146 | entries := []struct{ name, content string }{ |
nothing calls this directly
no test coverage detected