MustCreateDBWithOption returns a new, open DB at a temporary location with given options.
(t testing.TB, o *bolt.Options)
| 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 { |
| 42 | f := filepath.Join(t.TempDir(), "db") |
| 43 | return MustOpenDBWithOption(t, f, o) |
| 44 | } |
| 45 | |
| 46 | func MustOpenDBWithOption(t testing.TB, f string, o *bolt.Options) *DB { |
| 47 | db, err := OpenDBWithOption(t, f, o) |