Documentation
¶
Index ¶
- type Factory
- func (f Factory) RunTests(t *testing.T)
- func (f Factory) TestCheckTx(t *testing.T)
- func (f Factory) TestCommitTx(t *testing.T)
- func (f Factory) TestDeliverTx(t *testing.T)
- func (f Factory) TestLastBlock(t *testing.T)
- func (f Factory) TestQuery(t *testing.T)
- func (f Factory) TestTendermintEvidence(t *testing.T)
- func (f Factory) TestValidation(t *testing.T)
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) TestCheckTx ¶
TestCheckTx tests what happens when the ABCI method CheckTx() is called
func (Factory) TestCommitTx ¶
TestCommitTx tests what happens when the ABCI method CommitTx() is called
func (Factory) TestDeliverTx ¶
TestDeliverTx tests what happens when the ABCI method DeliverTx() is called
func (Factory) TestLastBlock ¶
TestLastBlock tests if tmpop correctly stores information about the previous block and previous history when committing.
func (Factory) TestTendermintEvidence ¶
TestTendermintEvidence tests that evidence is correctly added.
func (Factory) TestValidation ¶
TestValidation tests what happens when validating a segment from a json-schema based validation file
Source Files
¶
Click to show internal directories.
Click to hide internal directories.