MustCreateDB returns a new, open DB at a temporary location.
(t testing.TB)
| 34 | |
| 35 | // MustCreateDB returns a new, open DB at a temporary location. |
| 36 | func MustCreateDB(t testing.TB) *DB { |
| 37 | return MustCreateDBWithOption(t, nil) |
| 38 | } |
| 39 | |
| 40 | // MustCreateDBWithOption returns a new, open DB at a temporary location with given options. |
| 41 | func MustCreateDBWithOption(t testing.TB, o *bolt.Options) *DB { |