tests

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, factory StorageFactory, teardown TeardownFunc)

Run executes a test suite to ensure storage implementations match the requirements

Types

type StorageFactory

type StorageFactory func(ctx context.Context) storage.LeaseStorage

StorageFactory should create a new storage instance

type TeardownFunc

type TeardownFunc func(storage.LeaseStorage)

TeardownFunc is invoked after each test case

Jump to

Keyboard shortcuts

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