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

Function MustOpenDBWithOption

internal/btesting/btesting.go:46–51  ·  view source on GitHub ↗
(t testing.TB, f string, o *bolt.Options)

Source from the content-addressed store, hash-verified

44}
45
46func MustOpenDBWithOption(t testing.TB, f string, o *bolt.Options) *DB {
47 db, err := OpenDBWithOption(t, f, o)
48 require.NoError(t, err)
49 require.NotNil(t, db)
50 return db
51}
52
53func OpenDBWithOption(t testing.TB, f string, o *bolt.Options) (*DB, error) {
54 t.Logf("Opening bbolt DB at: %s", f)

Calls 1

OpenDBWithOptionFunction · 0.85