Documentation ¶
Overview ¶
Package mock_actpool is a generated GoMock package.
Index ¶
- type MockActPool
- func (m *MockActPool) AddExecution(execution *action.Execution) error
- func (m *MockActPool) AddTsf(tsf *action.Transfer) error
- func (m *MockActPool) AddVote(vote *action.Vote) error
- func (m *MockActPool) EXPECT() *MockActPoolMockRecorder
- func (m *MockActPool) GetActionByHash(hash hash.Hash32B) (*proto.ActionPb, error)
- func (m *MockActPool) GetPendingNonce(addr string) (uint64, error)
- func (m *MockActPool) GetUnconfirmedActs(addr string) []*proto.ActionPb
- func (m *MockActPool) PickActs() ([]*action.Transfer, []*action.Vote, []*action.Execution)
- func (m *MockActPool) Reset()
- type MockActPoolMockRecorder
- func (mr *MockActPoolMockRecorder) AddExecution(execution interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) AddTsf(tsf interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) AddVote(vote interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetActionByHash(hash interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetPendingNonce(addr interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) GetUnconfirmedActs(addr interface{}) *gomock.Call
- func (mr *MockActPoolMockRecorder) PickActs() *gomock.Call
- func (mr *MockActPoolMockRecorder) Reset() *gomock.Call
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) AddExecution ¶
func (m *MockActPool) AddExecution(execution *action.Execution) error
AddExecution mocks base method
func (*MockActPool) AddTsf ¶
func (m *MockActPool) AddTsf(tsf *action.Transfer) error
AddTsf mocks base method
func (*MockActPool) AddVote ¶
func (m *MockActPool) AddVote(vote *action.Vote) error
AddVote 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) GetPendingNonce ¶
func (m *MockActPool) GetPendingNonce(addr string) (uint64, error)
GetPendingNonce mocks base method
func (*MockActPool) GetUnconfirmedActs ¶
func (m *MockActPool) GetUnconfirmedActs(addr string) []*proto.ActionPb
GetUnconfirmedActs mocks base method
type MockActPoolMockRecorder ¶
type MockActPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockActPoolMockRecorder is the mock recorder for MockActPool
func (*MockActPoolMockRecorder) AddExecution ¶
func (mr *MockActPoolMockRecorder) AddExecution(execution interface{}) *gomock.Call
AddExecution indicates an expected call of AddExecution
func (*MockActPoolMockRecorder) AddTsf ¶
func (mr *MockActPoolMockRecorder) AddTsf(tsf interface{}) *gomock.Call
AddTsf indicates an expected call of AddTsf
func (*MockActPoolMockRecorder) AddVote ¶
func (mr *MockActPoolMockRecorder) AddVote(vote interface{}) *gomock.Call
AddVote indicates an expected call of AddVote
func (*MockActPoolMockRecorder) GetActionByHash ¶
func (mr *MockActPoolMockRecorder) GetActionByHash(hash interface{}) *gomock.Call
GetActionByHash indicates an expected call of GetActionByHash
func (*MockActPoolMockRecorder) GetPendingNonce ¶
func (mr *MockActPoolMockRecorder) GetPendingNonce(addr interface{}) *gomock.Call
GetPendingNonce indicates an expected call of GetPendingNonce
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