populateBlobStore creates a bunch of blobs
(ctx context.Context, cs content.Store, f *fuzz.ConsumeFuzzer)
| 80 | |
| 81 | // populateBlobStore creates a bunch of blobs |
| 82 | func populateBlobStore(ctx context.Context, cs content.Store, f *fuzz.ConsumeFuzzer) (map[digest.Digest][]byte, error) { |
| 83 | blobs, err := generateBlobs(f) |
| 84 | if err != nil { |
| 85 | return nil, err |
| 86 | } |
| 87 | |
| 88 | for dgst, p := range blobs { |
| 89 | _, err := checkWrite(ctx, cs, dgst, p) |
| 90 | if err != nil { |
| 91 | return blobs, err |
| 92 | } |
| 93 | } |
| 94 | return blobs, nil |
| 95 | } |
| 96 | |
| 97 | // FuzzCSWalk implements a fuzzer that targets contentStore.Walk() |
| 98 | func FuzzCSWalk(f *testing.F) { |
no test coverage detected
searching dependent graphs…