Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DataStoreTestSuite ¶
DataStoreTestSuite combines all test suites for datastore testing.
Types ¶
type DbTestEnv ¶
type DbTestEnv interface { // Creates the database testing environment. Called once per database test suite. Create() error // Cleans the database testing environment before every test and returns a new Store instance to be used by the test. Clean() (db.Store, error) // Destroys the database testing environment after all the tests have run. Called once per database test suite. Destroy() error }
DbTestEnv has to be implemented for each datastore where data store tests are expected to run.
Click to show internal directories.
Click to hide internal directories.