MCPcopy
hub / github.com/benbjohnson/litestream / MustCloseDBs

Function MustCloseDBs

internal/testingutil/testingutil.go:168–172  ·  view source on GitHub ↗

MustCloseDBs closes db & sqldb and removes the parent directory.

(tb testing.TB, db *litestream.DB, sqldb *sql.DB)

Source from the content-addressed store, hash-verified

166
167// MustCloseDBs closes db & sqldb and removes the parent directory.
168func MustCloseDBs(tb testing.TB, db *litestream.DB, sqldb *sql.DB) {
169 tb.Helper()
170 MustCloseDB(tb, db)
171 MustCloseSQLDB(tb, sqldb)
172}
173
174// MustOpenDB returns a new instance of a DB.
175func MustOpenDB(tb testing.TB) *litestream.DB {

Callers 15

TestServer_HandleInfoFunction · 0.92
TestServer_HandleListFunction · 0.92
TestServer_HandleStartFunction · 0.92
TestServer_HandleStopFunction · 0.92
TestServer_HandleSyncFunction · 0.92
TestStore_CompactDBFunction · 0.92

Calls 2

MustCloseDBFunction · 0.85
MustCloseSQLDBFunction · 0.85

Tested by 15

TestServer_HandleInfoFunction · 0.74
TestServer_HandleListFunction · 0.74
TestServer_HandleStartFunction · 0.74
TestServer_HandleStopFunction · 0.74
TestServer_HandleSyncFunction · 0.74
TestStore_CompactDBFunction · 0.74