storage

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMySQLTestContainer added in v0.2.3

func NewMySQLTestContainer() *mySQLTestContainer

NewMySQLTestContainer returns an implementation of the DatastoreTestContainer interface for MySQL.

func NewPostgresTestContainer added in v0.2.0

func NewPostgresTestContainer() *postgresTestContainer

NewPostgresTestContainer returns an implementation of the DatastoreTestContainer interface for Postgres.

Types

type DatastoreTestContainer added in v0.2.0

type DatastoreTestContainer interface {

	// GetConnectionURI returns a connection string to the datastore instance running inside
	// the container.
	GetConnectionURI() string
}

DatastoreTestContainer represents a runnable container for testing specific datastore engines.

func RunDatastoreTestContainer added in v0.2.0

func RunDatastoreTestContainer(t testing.TB, engine string) DatastoreTestContainer

RunDatastoreTestContainer constructs and runs a specifc DatastoreTestContainer for the provided datastore engine. The resources used by the test engine will be cleaned up after the test has finished.

Jump to

Keyboard shortcuts

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