Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerExists ¶
func ContainerExists() bool
ContainerExists checks if the postgres test container exists
func PostgresDSN ¶
func PostgresDSN() string
PostgresDSN returns the DSN for the test PostgreSQL container
func PostgresEnabled ¶
func PostgresEnabled() bool
PostgresEnabled returns true if TEST_POSTGRES=1 is set
func StartPostgres ¶
StartPostgres starts a PostgreSQL container for testing. It removes any existing container first to ensure a fresh database. Returns a cleanup function that should be called when tests complete.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.