testx

package
v0.0.0-...-b1adefe Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GlovalDSN

func GlovalDSN(
	t *testing.T,
) (string, func(), error)

GlovalDSN returns a global dsn and a cleanup function. It sets up a postgres container and migrates the database schema. It also loads the test data into the database.

func SetupContainer

func SetupContainer(
	t *testing.T,
) (string, func(), error)

func SetupData

func SetupData(
	t *testing.T,
	dsn string,
) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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