Documentation
¶
Overview ¶
Package pgstoretest wraps riverdbtest for the pgstore package's tests.
It mirrors internal/wfdbtest but under a distinct package name so that the schema-name prefix riverdbtest derives ("pgstoretest") differs from the core package's ("wfdbtest"). Both test binaries run concurrently under `go test ./...`; sharing a prefix collides on the (second-resolution) timestamped schema names, so they must differ.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Schema ¶
func Schema[TTx any](ctx context.Context, tb testutil.TestingTB, driver riverdriver.Driver[TTx]) string
Schema generates an isolated, migrated test schema, delegating to riverdbtest.TestSchema. Calling it from this package keeps the generated schema name hyphen-free and distinct from the core tests' schemas.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.