pgtest

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvvarPostgresTests enables tests that run against a local postgres db
	EnvvarPostgresTests = "ENABLE_PG_INTEGRATION_TESTS"
)

Variables

This section is empty.

Functions

func CountRows

func CountRows(t *testing.T, db dbutils.PostgresDB, table string) int

func EnsureChartsExist

func EnsureChartsExist(t *testing.T, pam dbutils.PostgresAssetManagerIface, charts []models.Chart, repo models.Repo)

func GetInitializedManager

func GetInitializedManager(t *testing.T) (*dbutils.PostgresAssetManager, func())

GetInitializedPGManager returns an initialized postgres manager ready for testing.

func SkipIfNoDB

func SkipIfNoDB(t *testing.T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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