Documentation ¶
Overview ¶
Package mock_actpool is a generated GoMock package.
Index ¶
- type MockActPool
- func (m *MockActPool) Add(act action.Action) error
- func (m *MockActPool) AddActionValidators(arg0 ...actpool.ActionValidator)
- func (m *MockActPool) EXPECT() *MockActPoolMockRecorder
- func (m *MockActPool) GetActionByHash(hash hash.Hash32B) (action.Action, error)
- func (m *MockActPool) GetCapacity() uint64
- func (m *MockActPool) GetPendingNonce(addr string) (uint64, error)
- func (m *MockActPool) GetSize() uint64
- func (m *MockActPool) GetUnconfirmedActs(addr string) []action.Action
- func (m *MockActPool) PickActs() []action.Action
- func (m *MockActPool) Reset()
- type MockActPoolMockRecorder
- func (mr *MockActPoolMockRecorder) Add(act interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) AddActionValidators(arg0 ...interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetActionByHash(hash interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetCapacity() *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) PickActs() *gomock.Call
- func (mr *MockActPoolMockRecorder) Reset() *gomock.Call
- type MockActionValidator
- type MockActionValidatorMockRecorder
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) AddActionValidators ¶
func (m *MockActPool) AddActionValidators(arg0 ...actpool.ActionValidator)
AddActionValidators 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 ¶
GetActionByHash mocks base method
func (*MockActPool) GetCapacity ¶
func (m *MockActPool) GetCapacity() uint64
GetCapacity 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.Action
GetUnconfirmedActs mocks base method
func (*MockActPool) PickActs ¶
func (m *MockActPool) PickActs() []action.Action
PickActs 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(act interface{}) *gomock.Call
Add indicates an expected call of Add
func (*MockActPoolMockRecorder) AddActionValidators ¶
func (mr *MockActPoolMockRecorder) AddActionValidators(arg0 ...interface{}) *gomock.Call
AddActionValidators indicates an expected call of AddActionValidators
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) 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) PickActs ¶
func (mr *MockActPoolMockRecorder) PickActs() *gomock.Call
PickActs indicates an expected call of PickActs
func (*MockActPoolMockRecorder) Reset ¶
func (mr *MockActPoolMockRecorder) Reset() *gomock.Call
Reset indicates an expected call of Reset
type MockActionValidator ¶
type MockActionValidator struct {
// contains filtered or unexported fields
}
MockActionValidator is a mock of ActionValidator interface
func NewMockActionValidator ¶
func NewMockActionValidator(ctrl *gomock.Controller) *MockActionValidator
NewMockActionValidator creates a new mock instance
func (*MockActionValidator) EXPECT ¶
func (m *MockActionValidator) EXPECT() *MockActionValidatorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockActionValidatorMockRecorder ¶
type MockActionValidatorMockRecorder struct {
// contains filtered or unexported fields
}
MockActionValidatorMockRecorder is the mock recorder for MockActionValidator
func (*MockActionValidatorMockRecorder) Validate ¶
func (mr *MockActionValidatorMockRecorder) Validate(arg0, arg1 interface{}) *gomock.Call
Validate indicates an expected call of Validate