perf: Index | Files

package dbtest

import ""


Package Files

dbtest.go nocloud.go

func NewDB Uses

func NewDB(t *testing.T) (*db.DB, func())

NewDB makes a connection to a testing database, either sqlite3 or Cloud SQL depending on the -cloud flag. cleanup must be called when done with the testing database, instead of calling db.Close()

Package dbtest imports 3 packages (graph). Updated 2019-12-10. Refresh now. Tools for package owners.