Documentation
¶
Overview ¶
Package testutil provides the Postgres a DB-backed test runs against.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetupTestDB ¶
SetupTestDB returns a pool onto a fresh, fully migrated database. The database is dropped when the test finishes.
func SetupTestDBAtVersion ¶ added in v0.10.0
SetupTestDBAtVersion is SetupTestDB stopped at a specific migration version, so a migration can be exercised against a populated older database rather than against a schema that already contains it.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.