testsupport

package
v0.1.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsolatedPostgres

func IsolatedPostgres(ctx context.Context, dsn, prefix string) (string, func(context.Context) error, error)

IsolatedPostgres creates a schema-scoped DSN and a cleanup function for an integration test.

func PostgresURL

func PostgresURL(t *testing.T) string

PostgresURL returns the integration database URL or skips the calling test when database integration was not requested.

func RunPostgresTests

func RunPostgresTests(runTests func() int) int

RunPostgresTests supplies an ephemeral PostgreSQL database to a package test suite when MOLEJO_TESTCONTAINERS is enabled. An explicit database URL always takes precedence.

Types

This section is empty.

Jump to

Keyboard shortcuts

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