mock_poll

package
v2.1.0-rc14 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package mock_poll is a generated GoMock package.

Index

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

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

Delegates mocks base method.

func (*MockProtocol) EXPECT

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

Handle mocks base method.

func (*MockProtocol) Name

func (m *MockProtocol) Name() string

Name 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL