mysqltest

package
v0.0.0-...-117750b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConnStr string
View Source
var ConnStrWithDb string
View Source
var DB *sql.DB
View Source
var MysqlDatabase string
View Source
var MysqlHosts string
View Source
var MysqlPassword string
View Source
var MysqlUsername string
View Source
var TX *sql.Tx

Functions

func DatabaseEnvKey

func DatabaseEnvKey(key string) func(cfg *TestingConfig)

func DeleteData

func DeleteData()

func MysqlAfterEach

func MysqlAfterEach()

func MysqlBeforeEach

func MysqlBeforeEach()

func MysqlBeforeSuite

func MysqlBeforeSuite()

func MysqlInitTesting

func MysqlInitTesting(t *testing.T, opts ...func(*TestingConfig)) bool

func RefreshTx

func RefreshTx()

Types

type TestingConfig

type TestingConfig struct {
	HostsEnvKey      string
	UsernameEnvKey   string
	PasswordEnvKey   string
	DatabaseEnvKey   string
	ReplicatedEnvKey string
}

Jump to

Keyboard shortcuts

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