testutils

package
v1.0.142 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TestDB       *gorm.DB
	TestDBPGPool *pgxpool.Pool
	TestClient   kubernetes.Interface
)

Variables used to aid testing.

It's better to fire up a single embedded database instance for the entire test suite. The variables are here so they can be imported by other packages as well.

Functions

func GetEmbeddedPGConfig added in v1.0.141

func GetEmbeddedPGConfig(database string, port int) (embeddedPG.Config, string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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