Documentation
¶
Index ¶
Constants ¶
View Source
const SeedSQL = `` /* 794-byte string literal not displayed */
SeedSQL creates tables, indexes, constraints, and data for integration tests.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶
Setup starts a PostgreSQL container, seeds it with test data, and returns the connection string and a cleanup function. If PGSPECTRE_TEST_DB_URL is set, it seeds that database instead of Docker. Returns an error if Docker is not available.
func SetupPostgres ¶
SetupPostgres is a test helper that starts a PostgreSQL container and seeds it. Skips the test if Docker is not available.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.