test

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL