Documentation
¶
Index ¶
- func RunAccessStoreTests(t *testing.T, store blob.AccessStore, teardown func())
- func RunServerTests(t *testing.T, accounts account.Store, blobs blob.Store, ...)
- func RunStoreTests(t *testing.T, store blob.Store, teardown func())
- func RunWorkerTests(t *testing.T, blobs blob.Store, storage blob.ObjectStorage, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunAccessStoreTests ¶
func RunAccessStoreTests(t *testing.T, store blob.AccessStore, teardown func())
RunAccessStoreTests runs the shared blob.AccessStore test suite.
func RunServerTests ¶
func RunServerTests( t *testing.T, accounts account.Store, blobs blob.Store, storage blob.ObjectStorage, access blob.AccessStore, upload uploadFunc, teardown func(), )
RunServerTests runs the shared blob.Server test suite against the given metadata store and object storage. The storage is always a fake injected by the caller (along with an upload hook), since the real S3/CloudFront backend is not exercised by unit tests.
func RunStoreTests ¶
RunStoreTests runs the shared blob.Store test suite.
func RunWorkerTests ¶ added in v1.22.0
func RunWorkerTests( t *testing.T, blobs blob.Store, storage blob.ObjectStorage, putObject putObjectFunc, teardown func(), )
RunWorkerTests runs the shared blob.Worker test suite against the given metadata store. The object storage is always a fake injected by the caller (along with a direct put hook), matching RunServerTests.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.