(t *testing.T, db *bolt.DB, o *bolt.Options)
| 222 | } |
| 223 | |
| 224 | func mustReOpenDB(t *testing.T, db *bolt.DB, o *bolt.Options) *bolt.DB { |
| 225 | f := db.Path() |
| 226 | |
| 227 | t.Logf("Closing bbolt DB at: %s", f) |
| 228 | err := db.Close() |
| 229 | require.NoError(t, err) |
| 230 | |
| 231 | return mustOpenDB(t, f, o) |
| 232 | } |
| 233 | |
| 234 | func mustOpenDB(t *testing.T, dbPath string, o *bolt.Options) *bolt.DB { |
| 235 | t.Logf("Opening bbolt DB at: %s", dbPath) |
no test coverage detected