mocks

package
v1.8.3 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mocks 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) AddLocal

func (m *MockTxPool) AddLocal(arg0 *types.Transaction) error

AddLocal mocks base method

func (*MockTxPool) CachedPendingTxsByCount

func (m *MockTxPool) CachedPendingTxsByCount(arg0 int) types.Transactions

CachedPendingTxsByCount mocks base method

func (*MockTxPool) Content

Content mocks base method

func (*MockTxPool) EXPECT

func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder

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

func (*MockTxPool) GasPrice

func (m *MockTxPool) GasPrice() *big.Int

GasPrice mocks base method

func (*MockTxPool) Get

func (m *MockTxPool) Get(arg0 common.Hash) *types.Transaction

Get mocks base method

func (*MockTxPool) GetPendingNonce

func (m *MockTxPool) GetPendingNonce(arg0 common.Address) uint64

GetPendingNonce mocks base method

func (*MockTxPool) HandleTxMsg

func (m *MockTxPool) HandleTxMsg(arg0 types.Transactions)

HandleTxMsg mocks base method

func (*MockTxPool) Pending

func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)

Pending mocks base method

func (*MockTxPool) SetGasPrice

func (m *MockTxPool) SetGasPrice(arg0 *big.Int)

SetGasPrice mocks base method

func (*MockTxPool) StartSpamThrottler added in v1.7.3

func (m *MockTxPool) StartSpamThrottler(arg0 *blockchain.ThrottlerConfig) error

StartSpamThrottler mocks base method

func (*MockTxPool) Stats

func (m *MockTxPool) Stats() (int, int)

Stats mocks base method

func (*MockTxPool) Stop

func (m *MockTxPool) Stop()

Stop mocks base method

func (*MockTxPool) StopSpamThrottler added in v1.7.3

func (m *MockTxPool) StopSpamThrottler()

StopSpamThrottler mocks base method

func (*MockTxPool) SubscribeNewTxsEvent

func (m *MockTxPool) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription

SubscribeNewTxsEvent mocks base method

type MockTxPoolMockRecorder

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

MockTxPoolMockRecorder is the mock recorder for MockTxPool

func (*MockTxPoolMockRecorder) AddLocal

func (mr *MockTxPoolMockRecorder) AddLocal(arg0 interface{}) *gomock.Call

AddLocal indicates an expected call of AddLocal

func (*MockTxPoolMockRecorder) CachedPendingTxsByCount

func (mr *MockTxPoolMockRecorder) CachedPendingTxsByCount(arg0 interface{}) *gomock.Call

CachedPendingTxsByCount indicates an expected call of CachedPendingTxsByCount

func (*MockTxPoolMockRecorder) Content

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

Content indicates an expected call of Content

func (*MockTxPoolMockRecorder) GasPrice

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

GasPrice indicates an expected call of GasPrice

func (*MockTxPoolMockRecorder) Get

func (mr *MockTxPoolMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get

func (*MockTxPoolMockRecorder) GetPendingNonce

func (mr *MockTxPoolMockRecorder) GetPendingNonce(arg0 interface{}) *gomock.Call

GetPendingNonce indicates an expected call of GetPendingNonce

func (*MockTxPoolMockRecorder) HandleTxMsg

func (mr *MockTxPoolMockRecorder) HandleTxMsg(arg0 interface{}) *gomock.Call

HandleTxMsg indicates an expected call of HandleTxMsg

func (*MockTxPoolMockRecorder) Pending

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

Pending indicates an expected call of Pending

func (*MockTxPoolMockRecorder) SetGasPrice

func (mr *MockTxPoolMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call

SetGasPrice indicates an expected call of SetGasPrice

func (*MockTxPoolMockRecorder) StartSpamThrottler added in v1.7.3

func (mr *MockTxPoolMockRecorder) StartSpamThrottler(arg0 interface{}) *gomock.Call

StartSpamThrottler indicates an expected call of StartSpamThrottler

func (*MockTxPoolMockRecorder) Stats

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

Stats indicates an expected call of Stats

func (*MockTxPoolMockRecorder) Stop

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

Stop indicates an expected call of Stop

func (*MockTxPoolMockRecorder) StopSpamThrottler added in v1.7.3

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

StopSpamThrottler indicates an expected call of StopSpamThrottler

func (*MockTxPoolMockRecorder) SubscribeNewTxsEvent

func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call

SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent

Jump to

Keyboard shortcuts

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