Help us shape the future of Go! Take the 2026 Go Developer Survey

testdb

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package testdb creates disposable databases for integration tests.

TEST_DATABASE_URL must point at a PostgreSQL server used only for tests, such as the one task test:integration starts. Each call creates a fresh database on that server and drops it when the test ends; the database named in the URL is never written to.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(t testing.TB) string

New creates an empty database and returns its URL.

Types

This section is empty.

Jump to

Keyboard shortcuts

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