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

Function MustCreateDB

internal/btesting/btesting.go:36–38  ·  view source on GitHub ↗

MustCreateDB returns a new, open DB at a temporary location.

(t testing.TB)

Source from the content-addressed store, hash-verified

34
35// MustCreateDB returns a new, open DB at a temporary location.
36func 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.
41func MustCreateDBWithOption(t testing.TB, o *bolt.Options) *DB {

Callers 15

TestCursor_BucketFunction · 0.92
TestCursor_SeekFunction · 0.92
TestCursor_DeleteFunction · 0.92
TestCursor_Seek_LargeFunction · 0.92
TestCursor_EmptyBucketFunction · 0.92
TestCursor_Iterate_LeafFunction · 0.92
TestCursor_RestartFunction · 0.92
TestCursor_QuickCheckFunction · 0.92

Calls 1

MustCreateDBWithOptionFunction · 0.85

Tested by 15

TestCursor_BucketFunction · 0.74
TestCursor_SeekFunction · 0.74
TestCursor_DeleteFunction · 0.74
TestCursor_Seek_LargeFunction · 0.74
TestCursor_EmptyBucketFunction · 0.74
TestCursor_Iterate_LeafFunction · 0.74
TestCursor_RestartFunction · 0.74
TestCursor_QuickCheckFunction · 0.74