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

Function prepareData

db_whitebox_test.go:115–126  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

113}
114
115func prepareData(t *testing.T) (string, error) {
116 fileName := filepath.Join(t.TempDir(), "db")
117 db, err := Open(fileName, 0666, nil)
118 if err != nil {
119 return "", err
120 }
121 if err := db.Close(); err != nil {
122 return "", err
123 }
124
125 return fileName, nil
126}

Callers 2

TestMethodPageFunction · 0.85

Calls 2

OpenFunction · 0.85
CloseMethod · 0.45

Tested by

no test coverage detected