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

Method PostTestCleanup

internal/btesting/btesting.go:81–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (db *DB) PostTestCleanup() {
82 // Check database consistency after every test.
83 if db.DB != nil {
84 db.MustCheck()
85 db.MustClose()
86 }
87}
88
89// Close closes the database but does NOT delete the underlying file.
90func (db *DB) Close() error {

Callers

nothing calls this directly

Calls 2

MustCheckMethod · 0.95
MustCloseMethod · 0.95

Tested by

no test coverage detected