testpg

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2026 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Overview

Package testpg provides PostgreSQL databases owned by one test process. Integration tests never use the configured application's database directly.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(m *testing.M, suite string) (code int)

Run creates a fresh database for a package and drops it after m.Run returns. ARTEX_TEST_PG_DSN (or the explicit legacy ARTEX_PG_DSN) identifies a test PostgreSQL server whose user has CREATEDB permission. Its database is only used as an administrative connection; no application tables are touched. With neither variable set, integration tests skip instead of reading config.json.

Types

This section is empty.

Jump to

Keyboard shortcuts

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