Documentation
¶
Index ¶
Constants ¶
View Source
const ( DbName = "test_db" DbUser = "test_user" DbPass = "test_password" )
Variables ¶
This section is empty.
Functions ¶
func GetFreeTCPPort ¶
GetFreeTCPPort asks the kernel for a free open port that is ready to use.
func WaitUntilBusyPort ¶
WaitUntilBusyPort blocks until port is in use
Types ¶
type TestDatabase ¶
type TestDatabase struct {
DbInstance *pgxpool.Pool
DbAddress string
// contains filtered or unexported fields
}
func SetupTestDatabase ¶
func SetupTestDatabase() *TestDatabase
func (*TestDatabase) TearDown ¶
func (tdb *TestDatabase) TearDown()
Click to show internal directories.
Click to hide internal directories.