(t *testing.T)
| 314 | } |
| 315 | |
| 316 | func TestImagePullAllPlatforms(t *testing.T) { |
| 317 | client, err := newClient(t, address) |
| 318 | if err != nil { |
| 319 | t.Fatal(err) |
| 320 | } |
| 321 | defer client.Close() |
| 322 | ctx, cancel := testContext(t) |
| 323 | defer cancel() |
| 324 | |
| 325 | cs := client.ContentStore() |
| 326 | img, err := client.Fetch(ctx, imagelist.Get(imagelist.Pause)) |
| 327 | if err != nil { |
| 328 | t.Fatal(err) |
| 329 | } |
| 330 | index := img.Target |
| 331 | manifests, err := images.Children(ctx, cs, index) |
| 332 | if err != nil { |
| 333 | t.Fatal(err) |
| 334 | } |
| 335 | for _, manifest := range manifests { |
| 336 | children, err := images.Children(ctx, cs, manifest) |
| 337 | if err != nil { |
| 338 | t.Fatal("Th") |
| 339 | } |
| 340 | // check if childless data type has blob in content store |
| 341 | for _, desc := range children { |
| 342 | ra, err := cs.ReaderAt(ctx, desc) |
| 343 | if err != nil { |
| 344 | t.Fatal(err) |
| 345 | } |
| 346 | ra.Close() |
| 347 | } |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | func TestImagePullSomePlatforms(t *testing.T) { |
| 352 | client, err := newClient(t, address) |
nothing calls this directly
no test coverage detected
searching dependent graphs…