Documentation ¶
Overview ¶
Package mock_poll is a generated GoMock package.
Index ¶
- type MockProtocol
- func (m *MockProtocol) CalculateCandidatesByHeight(arg0 context.Context, arg1 protocol.StateReader, arg2 uint64) (state.CandidateList, error)
- func (m *MockProtocol) CalculateUnproductiveDelegates(arg0 context.Context, arg1 protocol.StateReader) ([]string, error)
- func (m *MockProtocol) Candidates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
- func (m *MockProtocol) CreateGenesisStates(arg0 context.Context, arg1 protocol.StateManager) error
- func (m *MockProtocol) Delegates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
- func (m *MockProtocol) EXPECT() *MockProtocolMockRecorder
- func (m *MockProtocol) ForceRegister(arg0 *protocol.Registry) error
- func (m *MockProtocol) Handle(arg0 context.Context, arg1 action.Envelope, arg2 protocol.StateManager) (*action.Receipt, error)
- func (m *MockProtocol) Name() string
- func (m *MockProtocol) NextCandidates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
- func (m *MockProtocol) NextDelegates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
- func (m *MockProtocol) ReadState(arg0 context.Context, arg1 protocol.StateReader, arg2 []byte, arg3 ...[]byte) ([]byte, uint64, error)
- func (m *MockProtocol) Register(arg0 *protocol.Registry) error
- func (m *MockProtocol) Validate(arg0 context.Context, arg1 action.Envelope, arg2 protocol.StateReader) error
- type MockProtocolMockRecorder
- func (mr *MockProtocolMockRecorder) CalculateCandidatesByHeight(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) CalculateUnproductiveDelegates(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) Candidates(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) CreateGenesisStates(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) Delegates(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) ForceRegister(arg0 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) Handle(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) Name() *gomock.Call
- func (mr *MockProtocolMockRecorder) NextCandidates(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) NextDelegates(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) ReadState(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) Register(arg0 interface{}) *gomock.Call
- func (mr *MockProtocolMockRecorder) Validate(arg0, arg1, arg2 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockProtocol ¶
type MockProtocol struct {
// contains filtered or unexported fields
}
MockProtocol is a mock of Protocol interface.
func NewMockProtocol ¶
func NewMockProtocol(ctrl *gomock.Controller) *MockProtocol
NewMockProtocol creates a new mock instance.
func (*MockProtocol) CalculateCandidatesByHeight ¶
func (m *MockProtocol) CalculateCandidatesByHeight(arg0 context.Context, arg1 protocol.StateReader, arg2 uint64) (state.CandidateList, error)
CalculateCandidatesByHeight mocks base method.
func (*MockProtocol) CalculateUnproductiveDelegates ¶
func (m *MockProtocol) CalculateUnproductiveDelegates(arg0 context.Context, arg1 protocol.StateReader) ([]string, error)
CalculateUnproductiveDelegates mocks base method.
func (*MockProtocol) Candidates ¶
func (m *MockProtocol) Candidates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
Candidates mocks base method.
func (*MockProtocol) CreateGenesisStates ¶
func (m *MockProtocol) CreateGenesisStates(arg0 context.Context, arg1 protocol.StateManager) error
CreateGenesisStates mocks base method.
func (*MockProtocol) Delegates ¶
func (m *MockProtocol) Delegates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
Delegates mocks base method.
func (*MockProtocol) EXPECT ¶
func (m *MockProtocol) EXPECT() *MockProtocolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProtocol) ForceRegister ¶
func (m *MockProtocol) ForceRegister(arg0 *protocol.Registry) error
ForceRegister mocks base method.
func (*MockProtocol) Handle ¶
func (m *MockProtocol) Handle(arg0 context.Context, arg1 action.Envelope, arg2 protocol.StateManager) (*action.Receipt, error)
Handle mocks base method.
func (*MockProtocol) NextCandidates ¶
func (m *MockProtocol) NextCandidates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
NextCandidates mocks base method.
func (*MockProtocol) NextDelegates ¶
func (m *MockProtocol) NextDelegates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)
NextDelegates mocks base method.
func (*MockProtocol) ReadState ¶
func (m *MockProtocol) ReadState(arg0 context.Context, arg1 protocol.StateReader, arg2 []byte, arg3 ...[]byte) ([]byte, uint64, error)
ReadState mocks base method.
func (*MockProtocol) Register ¶
func (m *MockProtocol) Register(arg0 *protocol.Registry) error
Register mocks base method.
func (*MockProtocol) Validate ¶
func (m *MockProtocol) Validate(arg0 context.Context, arg1 action.Envelope, arg2 protocol.StateReader) error
Validate mocks base method.
type MockProtocolMockRecorder ¶
type MockProtocolMockRecorder struct {
// contains filtered or unexported fields
}
MockProtocolMockRecorder is the mock recorder for MockProtocol.
func (*MockProtocolMockRecorder) CalculateCandidatesByHeight ¶
func (mr *MockProtocolMockRecorder) CalculateCandidatesByHeight(arg0, arg1, arg2 interface{}) *gomock.Call
CalculateCandidatesByHeight indicates an expected call of CalculateCandidatesByHeight.
func (*MockProtocolMockRecorder) CalculateUnproductiveDelegates ¶
func (mr *MockProtocolMockRecorder) CalculateUnproductiveDelegates(arg0, arg1 interface{}) *gomock.Call
CalculateUnproductiveDelegates indicates an expected call of CalculateUnproductiveDelegates.
func (*MockProtocolMockRecorder) Candidates ¶
func (mr *MockProtocolMockRecorder) Candidates(arg0, arg1 interface{}) *gomock.Call
Candidates indicates an expected call of Candidates.
func (*MockProtocolMockRecorder) CreateGenesisStates ¶
func (mr *MockProtocolMockRecorder) CreateGenesisStates(arg0, arg1 interface{}) *gomock.Call
CreateGenesisStates indicates an expected call of CreateGenesisStates.
func (*MockProtocolMockRecorder) Delegates ¶
func (mr *MockProtocolMockRecorder) Delegates(arg0, arg1 interface{}) *gomock.Call
Delegates indicates an expected call of Delegates.
func (*MockProtocolMockRecorder) ForceRegister ¶
func (mr *MockProtocolMockRecorder) ForceRegister(arg0 interface{}) *gomock.Call
ForceRegister indicates an expected call of ForceRegister.
func (*MockProtocolMockRecorder) Handle ¶
func (mr *MockProtocolMockRecorder) Handle(arg0, arg1, arg2 interface{}) *gomock.Call
Handle indicates an expected call of Handle.
func (*MockProtocolMockRecorder) Name ¶
func (mr *MockProtocolMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockProtocolMockRecorder) NextCandidates ¶
func (mr *MockProtocolMockRecorder) NextCandidates(arg0, arg1 interface{}) *gomock.Call
NextCandidates indicates an expected call of NextCandidates.
func (*MockProtocolMockRecorder) NextDelegates ¶
func (mr *MockProtocolMockRecorder) NextDelegates(arg0, arg1 interface{}) *gomock.Call
NextDelegates indicates an expected call of NextDelegates.
func (*MockProtocolMockRecorder) ReadState ¶
func (mr *MockProtocolMockRecorder) ReadState(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call
ReadState indicates an expected call of ReadState.
func (*MockProtocolMockRecorder) Register ¶
func (mr *MockProtocolMockRecorder) Register(arg0 interface{}) *gomock.Call
Register indicates an expected call of Register.
func (*MockProtocolMockRecorder) Validate ¶
func (mr *MockProtocolMockRecorder) Validate(arg0, arg1, arg2 interface{}) *gomock.Call
Validate indicates an expected call of Validate.