tmpoptestcases

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// New creates an adapter and a key-value store.
	New func() (store.Adapter, store.KeyValueStore, error)

	// Free is an optional function to free the adapter and key-value store.
	Free func(adapter store.Adapter, kv store.KeyValueStore)
	// contains filtered or unexported fields
}

Factory wraps functions to allocate and free an adapter, and is used to run the tests on tmpop using this adapter.

func (Factory) RunTests

func (f Factory) RunTests(t *testing.T)

RunTests runs all the tests.

func (Factory) TestCheckTx

func (f Factory) TestCheckTx(t *testing.T)

TestCheckTx tests what happens when the ABCI method CheckTx() is called

func (Factory) TestCommitTx

func (f Factory) TestCommitTx(t *testing.T)

TestCommitTx tests what happens when the ABCI method CommitTx() is called

func (Factory) TestDeliverTx

func (f Factory) TestDeliverTx(t *testing.T)

TestDeliverTx tests what happens when the ABCI method DeliverTx() is called

func (Factory) TestLastBlock

func (f Factory) TestLastBlock(t *testing.T)

TestLastBlock tests if tmpop correctly stores information about the previous block and previous history when committing.

func (Factory) TestQuery

func (f Factory) TestQuery(t *testing.T)

TestQuery tests each query request type implemented by TMPop

func (Factory) TestTendermintEvidence

func (f Factory) TestTendermintEvidence(t *testing.T)

TestTendermintEvidence tests that evidence is correctly added.

func (Factory) TestValidation

func (f Factory) TestValidation(t *testing.T)

TestValidation tests what happens when validating a segment from a json-schema based validation file

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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