Documentation
¶
Overview ¶
Package drivertest provides test helpers that verify a Driver provides access to the expected stores.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunTests ¶
func RunTests( t *testing.T, d Driver, journalStore journal.BinaryStore, kvStore kv.BinaryStore, setStore set.BinaryStore, )
RunTests verifies that the driver's stores share the same data as the given reference stores by writing through the driver and reading through the reference stores.
Types ¶
type Driver ¶
type Driver interface {
JournalStore() journal.BinaryStore
KVStore() kv.BinaryStore
SetStore() set.BinaryStore
}
Driver is the subset of [persistencekit.Driver] used by driver tests.
Click to show internal directories.
Click to hide internal directories.