mock_txpool

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_txpool is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockTxPool

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

MockTxPool is a mock of TxPool interface

func NewMockTxPool

func NewMockTxPool(ctrl *gomock.Controller) *MockTxPool

NewMockTxPool creates a new mock instance

func (*MockTxPool) EXPECT

func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockTxPool) FetchTx

func (m *MockTxPool) FetchTx(hash *crypto.Hash32B) (*blockchain.Tx, error)

FetchTx mocks base method

func (*MockTxPool) HasOrphanTx

func (m *MockTxPool) HasOrphanTx(hash crypto.Hash32B) bool

HasOrphanTx mocks base method

func (*MockTxPool) HasTxOrOrphanTx

func (m *MockTxPool) HasTxOrOrphanTx(hash crypto.Hash32B) bool

HasTxOrOrphanTx mocks base method

func (*MockTxPool) LastTimePoolUpdated

func (m *MockTxPool) LastTimePoolUpdated() time.Time

LastTimePoolUpdated mocks base method

func (*MockTxPool) MaybeAcceptTx

func (m *MockTxPool) MaybeAcceptTx(tx *blockchain.Tx, isNew, rateLimit bool) ([]crypto.Hash32B, *txpool.TxDesc, error)

MaybeAcceptTx mocks base method

func (*MockTxPool) ProcessOrphanTxs

func (m *MockTxPool) ProcessOrphanTxs(acceptedTx *blockchain.Tx) []*txpool.TxDesc

ProcessOrphanTxs mocks base method

func (*MockTxPool) ProcessTx

func (m *MockTxPool) ProcessTx(tx *blockchain.Tx, allowOrphan, rateLimit bool, tag txpool.Tag) ([]*txpool.TxDesc, error)

ProcessTx mocks base method

func (*MockTxPool) RemoveDoubleSpends

func (m *MockTxPool) RemoveDoubleSpends(tx *blockchain.Tx)

RemoveDoubleSpends mocks base method

func (*MockTxPool) RemoveOrphanTx

func (m *MockTxPool) RemoveOrphanTx(tx *blockchain.Tx)

RemoveOrphanTx mocks base method

func (*MockTxPool) RemoveOrphanTxsByTag

func (m *MockTxPool) RemoveOrphanTxsByTag(tag txpool.Tag) uint64

RemoveOrphanTxsByTag mocks base method

func (*MockTxPool) RemoveTx

func (m *MockTxPool) RemoveTx(tx *blockchain.Tx, removeDescendants bool)

RemoveTx mocks base method

func (*MockTxPool) RemoveTxInBlock

func (m *MockTxPool) RemoveTxInBlock(block *blockchain.Block) error

RemoveTxInBlock mocks base method

func (*MockTxPool) TxDescs

func (m *MockTxPool) TxDescs() []*txpool.TxDesc

TxDescs mocks base method

func (*MockTxPool) Txs

func (m *MockTxPool) Txs() []*blockchain.Tx

Txs mocks base method

type MockTxPoolMockRecorder

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

MockTxPoolMockRecorder is the mock recorder for MockTxPool

func (*MockTxPoolMockRecorder) FetchTx

func (mr *MockTxPoolMockRecorder) FetchTx(hash interface{}) *gomock.Call

FetchTx indicates an expected call of FetchTx

func (*MockTxPoolMockRecorder) HasOrphanTx

func (mr *MockTxPoolMockRecorder) HasOrphanTx(hash interface{}) *gomock.Call

HasOrphanTx indicates an expected call of HasOrphanTx

func (*MockTxPoolMockRecorder) HasTxOrOrphanTx

func (mr *MockTxPoolMockRecorder) HasTxOrOrphanTx(hash interface{}) *gomock.Call

HasTxOrOrphanTx indicates an expected call of HasTxOrOrphanTx

func (*MockTxPoolMockRecorder) LastTimePoolUpdated

func (mr *MockTxPoolMockRecorder) LastTimePoolUpdated() *gomock.Call

LastTimePoolUpdated indicates an expected call of LastTimePoolUpdated

func (*MockTxPoolMockRecorder) MaybeAcceptTx

func (mr *MockTxPoolMockRecorder) MaybeAcceptTx(tx, isNew, rateLimit interface{}) *gomock.Call

MaybeAcceptTx indicates an expected call of MaybeAcceptTx

func (*MockTxPoolMockRecorder) ProcessOrphanTxs

func (mr *MockTxPoolMockRecorder) ProcessOrphanTxs(acceptedTx interface{}) *gomock.Call

ProcessOrphanTxs indicates an expected call of ProcessOrphanTxs

func (*MockTxPoolMockRecorder) ProcessTx

func (mr *MockTxPoolMockRecorder) ProcessTx(tx, allowOrphan, rateLimit, tag interface{}) *gomock.Call

ProcessTx indicates an expected call of ProcessTx

func (*MockTxPoolMockRecorder) RemoveDoubleSpends

func (mr *MockTxPoolMockRecorder) RemoveDoubleSpends(tx interface{}) *gomock.Call

RemoveDoubleSpends indicates an expected call of RemoveDoubleSpends

func (*MockTxPoolMockRecorder) RemoveOrphanTx

func (mr *MockTxPoolMockRecorder) RemoveOrphanTx(tx interface{}) *gomock.Call

RemoveOrphanTx indicates an expected call of RemoveOrphanTx

func (*MockTxPoolMockRecorder) RemoveOrphanTxsByTag

func (mr *MockTxPoolMockRecorder) RemoveOrphanTxsByTag(tag interface{}) *gomock.Call

RemoveOrphanTxsByTag indicates an expected call of RemoveOrphanTxsByTag

func (*MockTxPoolMockRecorder) RemoveTx

func (mr *MockTxPoolMockRecorder) RemoveTx(tx, removeDescendants interface{}) *gomock.Call

RemoveTx indicates an expected call of RemoveTx

func (*MockTxPoolMockRecorder) RemoveTxInBlock

func (mr *MockTxPoolMockRecorder) RemoveTxInBlock(block interface{}) *gomock.Call

RemoveTxInBlock indicates an expected call of RemoveTxInBlock

func (*MockTxPoolMockRecorder) TxDescs

func (mr *MockTxPoolMockRecorder) TxDescs() *gomock.Call

TxDescs indicates an expected call of TxDescs

func (*MockTxPoolMockRecorder) Txs

func (mr *MockTxPoolMockRecorder) Txs() *gomock.Call

Txs indicates an expected call of Txs

Jump to

Keyboard shortcuts

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