testutil

package
v1.66.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConnString added in v1.39.0

func ConnString() string

ConnString returns the connection string the tests use. A test that needs its own connection builds it from here.

func ConnectDB

func ConnectDB(t *testing.T) *pgx.Conn

func ServerMajorVersion added in v1.5.1

func ServerMajorVersion(t *testing.T, ctx context.Context, conn *pgx.Conn) int

func SetupDB

func SetupDB(t *testing.T, ctx context.Context, conn *pgx.Conn, initSQL string)

Types

This section is empty.

Directories

Path Synopsis
Package fuzzseed loads the SQL corpus the fuzz targets start from.
Package fuzzseed loads the SQL corpus the fuzz targets start from.

Jump to

Keyboard shortcuts

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