Documentation
¶
Overview ¶
Package providertest contains a common test suite for persistence.Provider implementations.
Index ¶
Constants ¶
View Source
const DefaultTestTimeout = 10 * time.Second
DefaultTestTimeout is the default test timeout.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type In ¶
type In struct { // Marshaler marshals and unmarshals the test message types, aggregate roots // and process roots. Marshaler marshaler.Marshaler }
In is a container for values provided by the test suite to the provider-specific initialization code.
type Out ¶
type Out struct { // NewProvider is a function that creates a new provider. NewProvider func() (p persistence.Provider, close func()) // the same data. IsShared bool // TestTimeout is the maximum duration allowed for each test. TestTimeout time.Duration }
Out is a container for values that are provided by the provider-specific initialization code to the test suite.
type TestContext ¶
TestContext encapsulates the shared test context passed to the tests for each provider sub-system.
func (*TestContext) SetupDataStore ¶
func (tc *TestContext) SetupDataStore() (persistence.DataStore, func())
SetupDataStore sets up a new data-store.
Click to show internal directories.
Click to hide internal directories.