iotex-core: github.com/iotexproject/iotex-core/test/mock/mock_poll Index | Files

package mock_poll

import "github.com/iotexproject/iotex-core/test/mock/mock_poll"

Package mock_poll is a generated GoMock package.

Index

Package Files

mock_poll.go

type MockProtocol Uses

type MockProtocol struct {
    // contains filtered or unexported fields
}

MockProtocol is a mock of Protocol interface

func NewMockProtocol Uses

func NewMockProtocol(ctrl *gomock.Controller) *MockProtocol

NewMockProtocol creates a new mock instance

func (*MockProtocol) CalculateCandidatesByHeight Uses

func (m *MockProtocol) CalculateCandidatesByHeight(arg0 context.Context, arg1 protocol.StateReader, arg2 uint64) (state.CandidateList, error)

CalculateCandidatesByHeight mocks base method

func (*MockProtocol) CalculateUnproductiveDelegates Uses

func (m *MockProtocol) CalculateUnproductiveDelegates(arg0 context.Context, arg1 protocol.StateReader) ([]string, error)

CalculateUnproductiveDelegates mocks base method

func (*MockProtocol) Candidates Uses

func (m *MockProtocol) Candidates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)

Candidates mocks base method

func (*MockProtocol) CreateGenesisStates Uses

func (m *MockProtocol) CreateGenesisStates(arg0 context.Context, arg1 protocol.StateManager) error

CreateGenesisStates mocks base method

func (*MockProtocol) Delegates Uses

func (m *MockProtocol) Delegates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)

Delegates mocks base method

func (*MockProtocol) EXPECT Uses

func (m *MockProtocol) EXPECT() *MockProtocolMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockProtocol) ForceRegister Uses

func (m *MockProtocol) ForceRegister(arg0 *protocol.Registry) error

ForceRegister mocks base method

func (*MockProtocol) Handle Uses

func (m *MockProtocol) Handle(arg0 context.Context, arg1 action.Action, arg2 protocol.StateManager) (*action.Receipt, error)

Handle mocks base method

func (*MockProtocol) Name Uses

func (m *MockProtocol) Name() string

Name mocks base method

func (*MockProtocol) NextCandidates Uses

func (m *MockProtocol) NextCandidates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)

NextCandidates mocks base method

func (*MockProtocol) NextDelegates Uses

func (m *MockProtocol) NextDelegates(arg0 context.Context, arg1 protocol.StateReader) (state.CandidateList, error)

NextDelegates mocks base method

func (*MockProtocol) ReadState Uses

func (m *MockProtocol) ReadState(arg0 context.Context, arg1 protocol.StateReader, arg2 []byte, arg3 ...[]byte) ([]byte, uint64, error)

ReadState mocks base method

func (*MockProtocol) Register Uses

func (m *MockProtocol) Register(arg0 *protocol.Registry) error

Register mocks base method

func (*MockProtocol) Validate Uses

func (m *MockProtocol) Validate(arg0 context.Context, arg1 action.Action, arg2 protocol.StateReader) error

Validate mocks base method

type MockProtocolMockRecorder Uses

type MockProtocolMockRecorder struct {
    // contains filtered or unexported fields
}

MockProtocolMockRecorder is the mock recorder for MockProtocol

func (*MockProtocolMockRecorder) CalculateCandidatesByHeight Uses

func (mr *MockProtocolMockRecorder) CalculateCandidatesByHeight(arg0, arg1, arg2 interface{}) *gomock.Call

CalculateCandidatesByHeight indicates an expected call of CalculateCandidatesByHeight

func (*MockProtocolMockRecorder) CalculateUnproductiveDelegates Uses

func (mr *MockProtocolMockRecorder) CalculateUnproductiveDelegates(arg0, arg1 interface{}) *gomock.Call

CalculateUnproductiveDelegates indicates an expected call of CalculateUnproductiveDelegates

func (*MockProtocolMockRecorder) Candidates Uses

func (mr *MockProtocolMockRecorder) Candidates(arg0, arg1 interface{}) *gomock.Call

Candidates indicates an expected call of Candidates

func (*MockProtocolMockRecorder) CreateGenesisStates Uses

func (mr *MockProtocolMockRecorder) CreateGenesisStates(arg0, arg1 interface{}) *gomock.Call

CreateGenesisStates indicates an expected call of CreateGenesisStates

func (*MockProtocolMockRecorder) Delegates Uses

func (mr *MockProtocolMockRecorder) Delegates(arg0, arg1 interface{}) *gomock.Call

Delegates indicates an expected call of Delegates

func (*MockProtocolMockRecorder) ForceRegister Uses

func (mr *MockProtocolMockRecorder) ForceRegister(arg0 interface{}) *gomock.Call

ForceRegister indicates an expected call of ForceRegister

func (*MockProtocolMockRecorder) Handle Uses

func (mr *MockProtocolMockRecorder) Handle(arg0, arg1, arg2 interface{}) *gomock.Call

Handle indicates an expected call of Handle

func (*MockProtocolMockRecorder) Name Uses

func (mr *MockProtocolMockRecorder) Name() *gomock.Call

Name indicates an expected call of Name

func (*MockProtocolMockRecorder) NextCandidates Uses

func (mr *MockProtocolMockRecorder) NextCandidates(arg0, arg1 interface{}) *gomock.Call

NextCandidates indicates an expected call of NextCandidates

func (*MockProtocolMockRecorder) NextDelegates Uses

func (mr *MockProtocolMockRecorder) NextDelegates(arg0, arg1 interface{}) *gomock.Call

NextDelegates indicates an expected call of NextDelegates

func (*MockProtocolMockRecorder) ReadState Uses

func (mr *MockProtocolMockRecorder) ReadState(arg0, arg1, arg2 interface{}, arg3 ...interface{}) *gomock.Call

ReadState indicates an expected call of ReadState

func (*MockProtocolMockRecorder) Register Uses

func (mr *MockProtocolMockRecorder) Register(arg0 interface{}) *gomock.Call

Register indicates an expected call of Register

func (*MockProtocolMockRecorder) Validate Uses

func (mr *MockProtocolMockRecorder) Validate(arg0, arg1, arg2 interface{}) *gomock.Call

Validate indicates an expected call of Validate

Package mock_poll imports 6 packages (graph). Updated 2020-09-23. Refresh now. Tools for package owners.