integration

package
v0.0.1-test9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 7, 2026 License: Apache-2.0 Imports: 7 Imported by: 0

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

func StartPostgres() (cleanup func(success bool), err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL