Documentation
¶
Overview ¶
Package pgtest runs integration tests against a real PostgreSQL in a throwaway container. Import it only from tests.
Index ¶
Constants ¶
View Source
const Image = "postgres:18.7-trixie@sha256:eb63372c1e05c755f55fa30cbd07aecc443676fc6c0fa90b9002d01537841e1a"
Image matches the PostgreSQL image in Docker Compose.
Variables ¶
This section is empty.
Functions ¶
func Main ¶
Main starts one container for a package's tests, runs them and removes it. Use it as: func TestMain(m *testing.M) { os.Exit(pgtest.Main(m)) }.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.