Documentation
¶
Overview ¶
Package testdb gives integration tests a Postgres database of their own.
Each test gets a fresh schema, so tests run in parallel and leave nothing behind. The database comes from HOPPER_TEST_DATABASE_URL; without it, integration tests are skipped.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EmptyPool ¶
EmptyPool is like Pool but leaves the schema empty, for migration tests. maxConns of 0 uses the pgxpool default.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.