checkAndDoUnpack checks if an image is unpacked. If it is not unpacked, then we may or may not unpack it. The fuzzer decides.
(ctx context.Context, image containerd.Image, f *fuzz.ConsumeFuzzer)
| 243 | // If it is not unpacked, then we may or may not |
| 244 | // unpack it. The fuzzer decides. |
| 245 | func checkAndDoUnpack(ctx context.Context, image containerd.Image, f *fuzz.ConsumeFuzzer) { |
| 246 | unpacked, err := image.IsUnpacked(ctx, testSnapshotter) |
| 247 | if err == nil && unpacked { |
| 248 | shouldUnpack, err := f.GetBool() |
| 249 | if err == nil && shouldUnpack { |
| 250 | _ = image.Unpack(ctx, testSnapshotter) |
| 251 | } |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | // getImage() returns an image from the client. |
| 256 | // The fuzzer decides which image is returned. |
no test coverage detected
searching dependent graphs…