testutil

package
v0.0.0-...-2cf57f6 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSQLConn

func NewSQLConn(t *testing.T) *sqlxConn

NewSQLConn returns connection with sql*x*.DB

func NewSQLMock

func NewSQLMock(t *testing.T) (*sqlx.DB, sqlmock.Sqlmock)

NewSQLMock returns sqlmock with sql*x*.DB

func SetTemporalEnv

func SetTemporalEnv(envs ...string) func()

SetTemporalEnv sets passed envs, returns a function to rollback env

Types

This section is empty.

Jump to

Keyboard shortcuts

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