pgstoretest

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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