package
Version:
v0.1.1
Opens a new window with list of versions in this module.
Published: Oct 25, 2026
License: Apache-2.0
Opens a new window with license information.
Imports: 12
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package pgtest provides Postgres for integration tests.
Main is a TestMain body that starts the database and runs the tests.
type Database struct {
URL string
}
Database is a Postgres server shared by the tests of one package.
Start returns the server named by FOREMAN_TEST_DATABASE_URL or starts a container.
Schema creates a fresh migrated schema and drops it when the test ends.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.