tests

package
v1.24.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 23 Imported by: 0

Documentation

Index

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

func RunStoreTests(t *testing.T, store blob.Store, teardown func())

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL