dbtest

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTest

func RunTest(t *testing.T, fn func(db *sql.DB, mock sqlmock.Sqlmock))

RunTest runs a test function with a mock database.

func RunTxTest

func RunTxTest(t *testing.T, f func(tx *sql.Tx, mock sqlmock.Sqlmock))

RunTxTest runs a test function with a mock database in a transaction.

Types

This section is empty.

Jump to

Keyboard shortcuts

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