testutils

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustExec

func MustExec(t *testing.T, ds sqlutil.DataSource, stmt string, args ...interface{})

func NewIndependentSqlxDB

func NewIndependentSqlxDB(t testing.TB) *sqlx.DB

NewIndependentSqlxDB return a new independent test database, which does not use txdb and therefore supports txs etc. Use this with caution, as it is much more costly than NewSqlxDB.

func NewSqlxDB

func NewSqlxDB(t testing.TB) *sqlx.DB

func SkipShortDB

func SkipShortDB(tb testing.TB)

SkipShortDB skips tb during -short runs, and notes the DB dependency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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