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 ¶
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.