(t *testing.T)
| 36 | ) |
| 37 | |
| 38 | func testEnv(t *testing.T) (context.Context, *bolt.DB, func(), error) { |
| 39 | dirname := t.TempDir() |
| 40 | db, err := bolt.Open(filepath.Join(dirname, "meta.db"), 0644, nil) |
| 41 | if err != nil { |
| 42 | return nil, nil, nil, err |
| 43 | } |
| 44 | |
| 45 | ctx, cancel := context.WithCancel(context.Background()) |
| 46 | ctx = namespaces.WithNamespace(ctx, "testing") |
| 47 | return ctx, db, func() { |
| 48 | db.Close() |
| 49 | cancel() |
| 50 | }, nil |
| 51 | } |
| 52 | |
| 53 | func FuzzImageStore(f *testing.F) { |
| 54 | f.Fuzz(func(t *testing.T, data []byte) { |
no test coverage detected
searching dependent graphs…