storagetest

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

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.

Jump to

Keyboard shortcuts

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