Documentation ¶
Overview ¶
Package storagetest contains tests and helpers for storage implementations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunLogStorageTests ¶ added in v1.3.9
func RunLogStorageTests(t *testing.T, storageFactory LogStorageFactory)
RunLogStorageTests runs all the log storage tests against the provided log storage implementation.
Types ¶
type LogStorageFactory ¶ added in v1.3.9
type LogStorageFactory = func(ctx context.Context, t *testing.T) (storage.LogStorage, storage.AdminStorage)
LogStorageFactory creates LogStorage and AdminStorage for a test to use.
type LogStorageTest ¶ added in v1.3.9
type LogStorageTest = func(ctx context.Context, t *testing.T, s storage.LogStorage, as storage.AdminStorage)
LogStorageTest executes a test using the given storage implementations.
Click to show internal directories.
Click to hide internal directories.