Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrorStringComparer = cmp.Comparer(func(e1, e2 error) bool { if e1 == nil && e2 == nil { return true } if e1 == nil || e2 == nil { return false } return e1.Error() == e2.Error() })
ErrorStringComparer allows go-cmp to compare two errors based on their .Error() string values rather than by checking strict type equality or memory address equality.
Functions ¶
func CleanupContainers ¶
func CleanupContainers()
CleanupContainers terminates any globally started containers.
func GlobalMySQL ¶
GlobalMySQL returns a shared MySQL DSN for the entire test process.
func GlobalPostgres ¶
GlobalPostgres returns a shared Postgres DSN for the entire test process.
func GlobalToxiproxyPostgres ¶
GlobalToxiproxyPostgres returns a DSN for a Postgres instance proxied through Toxiproxy.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.