Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Run ¶
func Run(t *testing.T, factory StorageFactory, teardown TeardownFunc)
Run executes a test suite to ensure storage implementations match the requirements
Types ¶
type StorageFactory ¶
type StorageFactory func(ctx context.Context) storage.LeaseStorage
StorageFactory should create a new storage instance
type TeardownFunc ¶
type TeardownFunc func(storage.LeaseStorage)
TeardownFunc is invoked after each test case
Click to show internal directories.
Click to hide internal directories.