MCPcopy
hub / github.com/etcd-io/bbolt / mustReOpenDB

Function mustReOpenDB

concurrent_test.go:224–232  ·  view source on GitHub ↗
(t *testing.T, db *bolt.DB, o *bolt.Options)

Source from the content-addressed store, hash-verified

222}
223
224func 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
234func mustOpenDB(t *testing.T, dbPath string, o *bolt.Options) *bolt.DB {
235 t.Logf("Opening bbolt DB at: %s", dbPath)

Callers 1

Calls 3

mustOpenDBFunction · 0.85
PathMethod · 0.45
CloseMethod · 0.45

Tested by

no test coverage detected