Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMemoryDataStore ¶
func NewMemoryDataStore(t *testing.T, config MemoryDataStoreConfig) *memoryDataStore
NewMemoryDataStore creates an in-memory version of the catalog datastore, which can be used in tests of changesets which require use of the catalog. This implementation does not store data, and any fixture must be provided to it at the start of the test. A new call to this function will create an entirely separate and new in-memory store, so changes will not be persisted.
You should call `store.Close()` between usages, unless you need to refer to shared test state ¶
This version is not threadsafe and could result in races when using transactions from multiple threads.
Types ¶
type MemoryDataStoreConfig ¶
Click to show internal directories.
Click to hide internal directories.