Documentation ¶ Index ¶ func OpenSqlite(ctx context.Context, tb testing.TB) (*db.DB, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func OpenSqlite ¶ func OpenSqlite(ctx context.Context, tb testing.TB) (*db.DB, error) OpenSqlite opens a new temp SQLite database for testing. It removes the database file when the test is done using tb.Cleanup. If ctx is nil, context.TODO() is used. Types ¶ This section is empty. Source Files ¶ View all Source files test.go Click to show internal directories. Click to hide internal directories.