Documentation ¶
Overview ¶
Package mock_actpool is a generated GoMock package.
Index ¶
- type MockActPool
- func (m *MockActPool) Add(ctx context.Context, act *action.SealedEnvelope) error
- func (m *MockActPool) AddActionEnvelopeValidators(arg0 ...action.SealedEnvelopeValidator)
- func (m *MockActPool) DeleteAction(arg0 address.Address)
- func (m *MockActPool) EXPECT() *MockActPoolMockRecorder
- func (m *MockActPool) GetActionByHash(hash hash.Hash256) (*action.SealedEnvelope, error)
- func (m *MockActPool) GetCapacity() uint64
- func (m *MockActPool) GetGasCapacity() uint64
- func (m *MockActPool) GetGasSize() uint64
- func (m *MockActPool) GetPendingNonce(addr string) (uint64, error)
- func (m *MockActPool) GetSize() uint64
- func (m *MockActPool) GetUnconfirmedActs(addr string) []*action.SealedEnvelope
- func (m *MockActPool) PendingActionMap() map[string][]*action.SealedEnvelope
- func (m *MockActPool) ReceiveBlock(arg0 *block.Block) error
- func (m *MockActPool) Reset()
- func (m *MockActPool) Start(arg0 context.Context) error
- func (m *MockActPool) Stop(arg0 context.Context) error
- func (m *MockActPool) Validate(arg0 context.Context, arg1 *action.SealedEnvelope) error
- type MockActPoolMockRecorder
- func (mr *MockActPoolMockRecorder) Add(ctx, act interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) AddActionEnvelopeValidators(arg0 ...interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) DeleteAction(arg0 interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetActionByHash(hash interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetCapacity() *gomock.Call
- func (mr *MockActPoolMockRecorder) GetGasCapacity() *gomock.Call
- func (mr *MockActPoolMockRecorder) GetGasSize() *gomock.Call
- func (mr *MockActPoolMockRecorder) GetPendingNonce(addr interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetSize() *gomock.Call
- func (mr *MockActPoolMockRecorder) GetUnconfirmedActs(addr interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) PendingActionMap() *gomock.Call
- func (mr *MockActPoolMockRecorder) ReceiveBlock(arg0 interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) Reset() *gomock.Call
- func (mr *MockActPoolMockRecorder) Start(arg0 interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) Stop(arg0 interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
- type MockSubscriber
- type MockSubscriberMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockActPool ¶
type MockActPool struct {
// contains filtered or unexported fields
}
MockActPool is a mock of ActPool interface.
func NewMockActPool ¶
func NewMockActPool(ctrl *gomock.Controller) *MockActPool
NewMockActPool creates a new mock instance.
func (*MockActPool) Add ¶
func (m *MockActPool) Add(ctx context.Context, act *action.SealedEnvelope) error
Add mocks base method.
func (*MockActPool) AddActionEnvelopeValidators ¶
func (m *MockActPool) AddActionEnvelopeValidators(arg0 ...action.SealedEnvelopeValidator)
AddActionEnvelopeValidators mocks base method.
func (*MockActPool) DeleteAction ¶
func (m *MockActPool) DeleteAction(arg0 address.Address)
DeleteAction mocks base method.
func (*MockActPool) EXPECT ¶
func (m *MockActPool) EXPECT() *MockActPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockActPool) GetActionByHash ¶
func (m *MockActPool) GetActionByHash(hash hash.Hash256) (*action.SealedEnvelope, error)
GetActionByHash mocks base method.
func (*MockActPool) GetCapacity ¶
func (m *MockActPool) GetCapacity() uint64
GetCapacity mocks base method.
func (*MockActPool) GetGasCapacity ¶
func (m *MockActPool) GetGasCapacity() uint64
GetGasCapacity mocks base method.
func (*MockActPool) GetGasSize ¶
func (m *MockActPool) GetGasSize() uint64
GetGasSize mocks base method.
func (*MockActPool) GetPendingNonce ¶
func (m *MockActPool) GetPendingNonce(addr string) (uint64, error)
GetPendingNonce mocks base method.
func (*MockActPool) GetUnconfirmedActs ¶
func (m *MockActPool) GetUnconfirmedActs(addr string) []*action.SealedEnvelope
GetUnconfirmedActs mocks base method.
func (*MockActPool) PendingActionMap ¶
func (m *MockActPool) PendingActionMap() map[string][]*action.SealedEnvelope
PendingActionMap mocks base method.
func (*MockActPool) ReceiveBlock ¶
func (m *MockActPool) ReceiveBlock(arg0 *block.Block) error
ReceiveBlock mocks base method.
func (*MockActPool) Start ¶
func (m *MockActPool) Start(arg0 context.Context) error
Start mocks base method.
func (*MockActPool) Stop ¶
func (m *MockActPool) Stop(arg0 context.Context) error
Stop mocks base method.
func (*MockActPool) Validate ¶
func (m *MockActPool) Validate(arg0 context.Context, arg1 *action.SealedEnvelope) error
Validate mocks base method.
type MockActPoolMockRecorder ¶
type MockActPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockActPoolMockRecorder is the mock recorder for MockActPool.
func (*MockActPoolMockRecorder) Add ¶
func (mr *MockActPoolMockRecorder) Add(ctx, act interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockActPoolMockRecorder) AddActionEnvelopeValidators ¶
func (mr *MockActPoolMockRecorder) AddActionEnvelopeValidators(arg0 ...interface{}) *gomock.Call
AddActionEnvelopeValidators indicates an expected call of AddActionEnvelopeValidators.
func (*MockActPoolMockRecorder) DeleteAction ¶
func (mr *MockActPoolMockRecorder) DeleteAction(arg0 interface{}) *gomock.Call
DeleteAction indicates an expected call of DeleteAction.
func (*MockActPoolMockRecorder) GetActionByHash ¶
func (mr *MockActPoolMockRecorder) GetActionByHash(hash interface{}) *gomock.Call
GetActionByHash indicates an expected call of GetActionByHash.
func (*MockActPoolMockRecorder) GetCapacity ¶
func (mr *MockActPoolMockRecorder) GetCapacity() *gomock.Call
GetCapacity indicates an expected call of GetCapacity.
func (*MockActPoolMockRecorder) GetGasCapacity ¶
func (mr *MockActPoolMockRecorder) GetGasCapacity() *gomock.Call
GetGasCapacity indicates an expected call of GetGasCapacity.
func (*MockActPoolMockRecorder) GetGasSize ¶
func (mr *MockActPoolMockRecorder) GetGasSize() *gomock.Call
GetGasSize indicates an expected call of GetGasSize.
func (*MockActPoolMockRecorder) GetPendingNonce ¶
func (mr *MockActPoolMockRecorder) GetPendingNonce(addr interface{}) *gomock.Call
GetPendingNonce indicates an expected call of GetPendingNonce.
func (*MockActPoolMockRecorder) GetSize ¶
func (mr *MockActPoolMockRecorder) GetSize() *gomock.Call
GetSize indicates an expected call of GetSize.
func (*MockActPoolMockRecorder) GetUnconfirmedActs ¶
func (mr *MockActPoolMockRecorder) GetUnconfirmedActs(addr interface{}) *gomock.Call
GetUnconfirmedActs indicates an expected call of GetUnconfirmedActs.
func (*MockActPoolMockRecorder) PendingActionMap ¶
func (mr *MockActPoolMockRecorder) PendingActionMap() *gomock.Call
PendingActionMap indicates an expected call of PendingActionMap.
func (*MockActPoolMockRecorder) ReceiveBlock ¶
func (mr *MockActPoolMockRecorder) ReceiveBlock(arg0 interface{}) *gomock.Call
ReceiveBlock indicates an expected call of ReceiveBlock.
func (*MockActPoolMockRecorder) Reset ¶
func (mr *MockActPoolMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset.
func (*MockActPoolMockRecorder) Start ¶
func (mr *MockActPoolMockRecorder) Start(arg0 interface{}) *gomock.Call
Start indicates an expected call of Start.
func (*MockActPoolMockRecorder) Stop ¶
func (mr *MockActPoolMockRecorder) Stop(arg0 interface{}) *gomock.Call
Stop indicates an expected call of Stop.
func (*MockActPoolMockRecorder) Validate ¶
func (mr *MockActPoolMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate.
type MockSubscriber ¶
type MockSubscriber struct {
// contains filtered or unexported fields
}
MockSubscriber is a mock of Subscriber interface.
func NewMockSubscriber ¶
func NewMockSubscriber(ctrl *gomock.Controller) *MockSubscriber
NewMockSubscriber creates a new mock instance.
func (*MockSubscriber) EXPECT ¶
func (m *MockSubscriber) EXPECT() *MockSubscriberMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSubscriber) OnAdded ¶
func (m *MockSubscriber) OnAdded(arg0 *action.SealedEnvelope)
OnAdded mocks base method.
func (*MockSubscriber) OnRemoved ¶
func (m *MockSubscriber) OnRemoved(arg0 *action.SealedEnvelope)
OnRemoved mocks base method.
type MockSubscriberMockRecorder ¶
type MockSubscriberMockRecorder struct {
// contains filtered or unexported fields
}
MockSubscriberMockRecorder is the mock recorder for MockSubscriber.
func (*MockSubscriberMockRecorder) OnAdded ¶
func (mr *MockSubscriberMockRecorder) OnAdded(arg0 interface{}) *gomock.Call
OnAdded indicates an expected call of OnAdded.
func (*MockSubscriberMockRecorder) OnRemoved ¶
func (mr *MockSubscriberMockRecorder) OnRemoved(arg0 interface{}) *gomock.Call
OnRemoved indicates an expected call of OnRemoved.