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.7.1 (latest)
Published
Jan 9, 2025
Platform
linux/amd64
Imports
17 packages
Last checked
5 days ago

Tools for package owners.