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

Method MustClose

internal/btesting/btesting.go:107–110  ·  view source on GitHub ↗

MustClose closes the database but does NOT delete the underlying file.

()

Source from the content-addressed store, hash-verified

105
106// MustClose closes the database but does NOT delete the underlying file.
107func (db *DB) MustClose() {
108 err := db.Close()
109 require.NoError(db.t, err)
110}
111
112func (db *DB) MustDeleteFile() {
113 err := os.Remove(db.Path())

Calls 1

CloseMethod · 0.95