Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockTxPool
- func (m *MockTxPool) AddLocal(arg0 *types.Transaction) error
- func (m *MockTxPool) CachedPendingTxsByCount(arg0 int) types.Transactions
- func (m *MockTxPool) Content() (map[common.Address]types.Transactions, map[common.Address]types.Transactions)
- func (m *MockTxPool) EXPECT() *MockTxPoolMockRecorder
- func (m *MockTxPool) GasPrice() *big.Int
- func (m *MockTxPool) Get(arg0 common.Hash) *types.Transaction
- func (m *MockTxPool) GetPendingNonce(arg0 common.Address) uint64
- func (m *MockTxPool) HandleTxMsg(arg0 types.Transactions)
- func (m *MockTxPool) Pending() (map[common.Address]types.Transactions, error)
- func (m *MockTxPool) SetGasPrice(arg0 *big.Int)
- func (m *MockTxPool) Stats() (int, int)
- func (m *MockTxPool) Stop()
- func (m *MockTxPool) SubscribeNewTxsEvent(arg0 chan<- blockchain.NewTxsEvent) event.Subscription
- type MockTxPoolMockRecorder
- func (mr *MockTxPoolMockRecorder) AddLocal(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) CachedPendingTxsByCount(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Content() *gomock.Call
- func (mr *MockTxPoolMockRecorder) GasPrice() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) GetPendingNonce(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) HandleTxMsg(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Pending() *gomock.Call
- func (mr *MockTxPoolMockRecorder) SetGasPrice(arg0 interface{}) *gomock.Call
- func (mr *MockTxPoolMockRecorder) Stats() *gomock.Call
- func (mr *MockTxPoolMockRecorder) Stop() *gomock.Call
- func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call
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 ¶
func (m *MockTxPool) Content() (map[common.Address]types.Transactions, map[common.Address]types.Transactions)
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) 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) 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) 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) SubscribeNewTxsEvent ¶
func (mr *MockTxPoolMockRecorder) SubscribeNewTxsEvent(arg0 interface{}) *gomock.Call
SubscribeNewTxsEvent indicates an expected call of SubscribeNewTxsEvent