dbtest

package
v1.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: MIT 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