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 ¶
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.
Click to show internal directories.
Click to hide internal directories.