testutil

package
v0.3.8 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package testutil — testcontainers helpers for the pgchannel provider tests.

Each helper is no-op-on-skip when Docker is not available; the caller can trust that returning from a helper means the test environment is ready.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustStartTestPostgres

func MustStartTestPostgres(t *testing.T) string

MustStartTestPostgres spins up a fresh Postgres container with the pgchannel schema pre-loaded and returns its DSN. The container is torn down via t.Cleanup at the end of the test.

If Docker is unavailable in the current environment the test is SKIPPED (via testcontainers.SkipIfProviderIsNotHealthy) rather than failed — pgchannel tests are not gated on the unit-test runner having Docker.

Callers should treat the returned DSN as opaque and pass it directly into pgchannel.OpenConnection.

Types

This section is empty.

Jump to

Keyboard shortcuts

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