package storagetest

import "github.com/google/trillian/integration/storagetest"

Package storagetest contains tests and helpers for storage implementations.

Index

Functions

func RunLogStorageTests

func RunLogStorageTests(t *testing.T, storageFactory LogStorageFactory)

RunLogStorageTests runs all the log storage tests against the provided log storage implementation.

Types

type LogStorageFactory

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

type LogStorageTest = func(ctx context.Context, t *testing.T, s storage.LogStorage, as storage.AdminStorage)

LogStorageTest executes a test using the given storage implementations.

Source Files

doc.go loghelpers.go logtests.go testrunner.go treehelpers.go

Version
v1.6.1
Published
Aug 28, 2024
Platform
js/wasm
Imports
17 packages
Last checked
14 minutes ago

Tools for package owners.