Documentation ¶
Overview ¶
Package testutil contains utility methods for use in tests
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithFTPServer ¶ added in v1.7.0
WithFTPServer is a test helper function that creates a connection to an FTP server configured by the environment.
func WithPostgresInstance ¶
WithPostgresInstance is a test helper function that creates a connection to a postgres database configured by the environment. Once connected, migrations are performed. When the test is finished, the database will be migrated down again.
func WithSQLiteInstance ¶
WithSQLiteInstance is a test helper function that creates an sqlite database. Once connected, migrations are performed. When the test is finished, the database will be migrated down again.
Types ¶
Click to show internal directories.
Click to hide internal directories.