test

package
v0.0.0-...-ff5f600 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2016 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Put    operation = 0
	Delete operation = 1
)

Variables

This section is empty.

Functions

func Fatalf

func Fatalf(t *testing.T, format string, args ...interface{})

func RunCloseTest

func RunCloseTest(t *testing.T, st store.Store)

RunCloseTest verifies that child objects are closed when the parent object is closed.

func RunConcurrentTransactionsTest

func RunConcurrentTransactionsTest(t *testing.T, st store.Store)

RunConcurrentTransactionsTest verifies that concurrent transactions invalidate each other as expected.

func RunReadWriteBasicTest

func RunReadWriteBasicTest(t *testing.T, st store.Store)

RunReadWriteBasicTest runs a basic test that verifies reads, writes and snapshots.

func RunReadWriteRandomTest

func RunReadWriteRandomTest(t *testing.T, st store.Store)

RunReadWriteRandomTest runs a random-generated test that verifies reads, writes and snapshots.

func RunSnapshotTest

func RunSnapshotTest(t *testing.T, st store.Store)

RunSnapshotTest verifies store.Snapshot operations.

func RunStoreStateTest

func RunStoreStateTest(t *testing.T, st store.Store)

RunStoreStateTest verifies operations that modify the state of a store.Store.

func RunStreamTest

func RunStreamTest(t *testing.T, st store.Store)

RunStreamTest verifies store.Stream operations.

func RunTransactionStateTest

func RunTransactionStateTest(t *testing.T, st store.Store)

RunTransactionStateTest verifies operations that modify the state of a store.Transaction.

func RunTransactionsWithGetTest

func RunTransactionsWithGetTest(t *testing.T, st store.Store)

RunTransactionsWithGetTest tests transactions that use Put and Get operations. NOTE: consider setting GOMAXPROCS to something greater than 1.

Types

This section is empty.

Jump to

Keyboard shortcuts

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