storetest

package
v0.0.0-...-b215dc3 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TestConsensusParams

func TestConsensusParams(t *testing.T, s store.Store)

TestConsensusParams verifies the ConsensusParams storage behavior

func TestLastEvent

func TestLastEvent(t *testing.T, s store.Store)

TestLastEvent verifies the LastEvent storage behavior

func TestOrders

func TestOrders(t *testing.T, s store.Store)

TestOrders creates `total` orders keeping up to `limit` orders.

func TestPoster

func TestPoster(t *testing.T, s store.Store)

TestPoster verifies the Poster storage behavior

func TestRoundInfo

func TestRoundInfo(t *testing.T, s store.Store)

TestRoundInfo verifies the RoundInfo storage behavior

func TestSuite

func TestSuite(t *testing.T, f Factory)

TestSuite tests an entire store needed to implement a store.Store. Any implementation needs to pass this TestSuite

func TestValidator

func TestValidator(t *testing.T, s store.Store)

TestValidator verifies the Validator storage behavior

func TestWitness

func TestWitness(t *testing.T, s store.Store)

TestWitness verifies the Witness storage behavior

Types

type Factory

type Factory func() (store.Store, func())

Factory is a function that returns a new store and a cleanup/closer function

Jump to

Keyboard shortcuts

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