Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.