Documentation ¶ Index ¶ func NewDB(t *testing.T) (*db.DB, func()) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewDB ¶ 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() Types ¶ This section is empty. Source Files ¶ View all Source files dbtest.go nocloud.go Click to show internal directories. Click to hide internal directories.