conformance

package
v2.8.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2017 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package conformance provides conformance tests for storage implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunTests

func RunTests(t *testing.T, newStorage func() storage.Storage)

RunTests runs a set of conformance tests against a storage. newStorage should return an initialized but empty storage. The storage will be closed at the end of each test run.

func RunTransactionTests

func RunTransactionTests(t *testing.T, newStorage func() storage.Storage)

RunTransactionTests runs a test suite aimed a verifying the transaction guarantees of the storage interface. Atomic updates, deletes, etc. The storage returned by newStorage will be closed at the end of each test run.

This call is separate from RunTests because some storage perform extremely poorly under deadlocks, such as SQLite3, while others may be working towards conformance.

Types

This section is empty.

Jump to

Keyboard shortcuts

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