testutil

package
v0.0.0-...-4483e4c Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupTestDB

func SetupTestDB(t *testing.T) (*sql.DB, error)

SetupTestDB starts an ephemeral PostgreSQL container, runs schema migrations, and returns an active *sql.DB connection. It automatically registers cleanup.

Types

This section is empty.

Jump to

Keyboard shortcuts

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