Documentation ¶
Index ¶
Constants ¶
View Source
const (
// TestDatabaseName is the name of the test database.
TestDatabaseName = "webapitest"
)
Variables ¶
This section is empty.
Functions ¶
func Connection ¶
func Connection(unique string) *mysql.Connection
Connection returns the test connection.
func SetupDatabase ¶
SetupDatabase will create the test database and set the environment variables.
func TeardownDatabase ¶
func TeardownDatabase(unique string)
TeardownDatabase will destroy the test database and unset the environment variables.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.