mgtest

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: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// EnvvarMongoTests enables tests that run against a local mongo db
	EnvvarMongoTests = "ENABLE_MONGO_INTEGRATION_TESTS"
)

Variables

This section is empty.

Functions

func GetInitializedManager

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

GetInitializedManager returns an initialized mongodb manager ready for testing.

func OpenTestManager

func OpenTestManager(t *testing.T) *dbutils.MongodbAssetManager

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