mock

package
v0.12.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2016 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDefaultMockPipe

func NewDefaultMockPipe() definitions.Pipe

Create a mock pipe with default mock data.

func NewMockPipe

func NewMockPipe(td *td.TestData) definitions.Pipe

Create a new mock tendermint pipe.

Types

type MockPipe

type MockPipe struct {
	// contains filtered or unexported fields
}

Base struct.

func (*MockPipe) Accounts

func (pipe *MockPipe) Accounts() definitions.Accounts

func (*MockPipe) Blockchain

func (pipe *MockPipe) Blockchain() blockchain_types.Blockchain

func (*MockPipe) Events

func (pipe *MockPipe) Events() event.EventEmitter

func (*MockPipe) GenesisHash

func (pipe *MockPipe) GenesisHash() []byte

func (*MockPipe) GetApplication

func (pipe *MockPipe) GetApplication() manager_types.Application

func (*MockPipe) GetBlockchain

func (pipe *MockPipe) GetBlockchain() blockchain_types.Blockchain

func (*MockPipe) GetConsensusEngine

func (pipe *MockPipe) GetConsensusEngine() consensus_types.ConsensusEngine

func (*MockPipe) GetTendermintPipe

func (pipe *MockPipe) GetTendermintPipe() (definitions.TendermintPipe, error)

func (*MockPipe) NameReg

func (pipe *MockPipe) NameReg() definitions.NameReg

func (*MockPipe) SetBlockchain

func (pipe *MockPipe) SetBlockchain(_ blockchain_types.Blockchain) error

func (*MockPipe) SetConsensusEngine

func (pipe *MockPipe) SetConsensusEngine(_ consensus_types.ConsensusEngine) error

func (*MockPipe) Transactor

func (pipe *MockPipe) Transactor() definitions.Transactor

Jump to

Keyboard shortcuts

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