mocks

package
v0.2.12-beta.1 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRolacle

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

MockRolacle is a mock of Rolacle interface.

func NewMockRolacle

func NewMockRolacle(ctrl *gomock.Controller) *MockRolacle

NewMockRolacle creates a new mock instance.

func (*MockRolacle) CalcEligibility

func (m *MockRolacle) CalcEligibility(arg0 context.Context, arg1 types.LayerID, arg2 uint32, arg3 int, arg4 types.NodeID, arg5 []byte) (uint16, error)

CalcEligibility mocks base method.

func (*MockRolacle) EXPECT

func (m *MockRolacle) EXPECT() *MockRolacleMockRecorder

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

func (*MockRolacle) IsIdentityActiveOnConsensusView

func (m *MockRolacle) IsIdentityActiveOnConsensusView(arg0 context.Context, arg1 string, arg2 types.LayerID) (bool, error)

IsIdentityActiveOnConsensusView mocks base method.

func (*MockRolacle) Proof

func (m *MockRolacle) Proof(arg0 context.Context, arg1 types.LayerID, arg2 uint32) ([]byte, error)

Proof mocks base method.

func (*MockRolacle) Validate

func (m *MockRolacle) Validate(arg0 context.Context, arg1 types.LayerID, arg2 uint32, arg3 int, arg4 types.NodeID, arg5 []byte, arg6 uint16) (bool, error)

Validate mocks base method.

type MockRolacleMockRecorder

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

MockRolacleMockRecorder is the mock recorder for MockRolacle.

func (*MockRolacleMockRecorder) CalcEligibility

func (mr *MockRolacleMockRecorder) CalcEligibility(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call

CalcEligibility indicates an expected call of CalcEligibility.

func (*MockRolacleMockRecorder) IsIdentityActiveOnConsensusView

func (mr *MockRolacleMockRecorder) IsIdentityActiveOnConsensusView(arg0, arg1, arg2 interface{}) *gomock.Call

IsIdentityActiveOnConsensusView indicates an expected call of IsIdentityActiveOnConsensusView.

func (*MockRolacleMockRecorder) Proof

func (mr *MockRolacleMockRecorder) Proof(arg0, arg1, arg2 interface{}) *gomock.Call

Proof indicates an expected call of Proof.

func (*MockRolacleMockRecorder) Validate

func (mr *MockRolacleMockRecorder) Validate(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *gomock.Call

Validate indicates an expected call of Validate.

type MockblockGenerator

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

MockblockGenerator is a mock of blockGenerator interface.

func NewMockblockGenerator

func NewMockblockGenerator(ctrl *gomock.Controller) *MockblockGenerator

NewMockblockGenerator creates a new mock instance.

func (*MockblockGenerator) EXPECT

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

func (*MockblockGenerator) GenerateBlock

func (m *MockblockGenerator) GenerateBlock(arg0 context.Context, arg1 types.LayerID, arg2 []*types.Proposal) (*types.Block, error)

GenerateBlock mocks base method.

type MockblockGeneratorMockRecorder

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

MockblockGeneratorMockRecorder is the mock recorder for MockblockGenerator.

func (*MockblockGeneratorMockRecorder) GenerateBlock

func (mr *MockblockGeneratorMockRecorder) GenerateBlock(arg0, arg1, arg2 interface{}) *gomock.Call

GenerateBlock indicates an expected call of GenerateBlock.

type MockidentityProvider

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

MockidentityProvider is a mock of identityProvider interface.

func NewMockidentityProvider

func NewMockidentityProvider(ctrl *gomock.Controller) *MockidentityProvider

NewMockidentityProvider creates a new mock instance.

func (*MockidentityProvider) EXPECT

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

func (*MockidentityProvider) GetIdentity

func (m *MockidentityProvider) GetIdentity(arg0 string) (types.NodeID, error)

GetIdentity mocks base method.

type MockidentityProviderMockRecorder

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

MockidentityProviderMockRecorder is the mock recorder for MockidentityProvider.

func (*MockidentityProviderMockRecorder) GetIdentity

func (mr *MockidentityProviderMockRecorder) GetIdentity(arg0 interface{}) *gomock.Call

GetIdentity indicates an expected call of GetIdentity.

type MocklayerPatrol

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

MocklayerPatrol is a mock of layerPatrol interface.

func NewMocklayerPatrol

func NewMocklayerPatrol(ctrl *gomock.Controller) *MocklayerPatrol

NewMocklayerPatrol creates a new mock instance.

func (*MocklayerPatrol) CompleteHare

func (m *MocklayerPatrol) CompleteHare(arg0 types.LayerID)

CompleteHare mocks base method.

func (*MocklayerPatrol) EXPECT

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

func (*MocklayerPatrol) SetHareInCharge

func (m *MocklayerPatrol) SetHareInCharge(arg0 types.LayerID)

SetHareInCharge mocks base method.

type MocklayerPatrolMockRecorder

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

MocklayerPatrolMockRecorder is the mock recorder for MocklayerPatrol.

func (*MocklayerPatrolMockRecorder) CompleteHare

func (mr *MocklayerPatrolMockRecorder) CompleteHare(arg0 interface{}) *gomock.Call

CompleteHare indicates an expected call of CompleteHare.

func (*MocklayerPatrolMockRecorder) SetHareInCharge

func (mr *MocklayerPatrolMockRecorder) SetHareInCharge(arg0 interface{}) *gomock.Call

SetHareInCharge indicates an expected call of SetHareInCharge.

type MockmeshProvider

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

MockmeshProvider is a mock of meshProvider interface.

func NewMockmeshProvider

func NewMockmeshProvider(ctrl *gomock.Controller) *MockmeshProvider

NewMockmeshProvider creates a new mock instance.

func (*MockmeshProvider) AddBlockWithTXs

func (m *MockmeshProvider) AddBlockWithTXs(arg0 context.Context, arg1 *types.Block) error

AddBlockWithTXs mocks base method.

func (*MockmeshProvider) EXPECT

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

func (*MockmeshProvider) GetBallot

func (m *MockmeshProvider) GetBallot(arg0 types.BallotID) (*types.Ballot, error)

GetBallot mocks base method.

func (*MockmeshProvider) ProcessLayerPerHareOutput

func (m *MockmeshProvider) ProcessLayerPerHareOutput(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID) error

ProcessLayerPerHareOutput mocks base method.

func (*MockmeshProvider) RecordCoinflip

func (m *MockmeshProvider) RecordCoinflip(arg0 context.Context, arg1 types.LayerID, arg2 bool)

RecordCoinflip mocks base method.

type MockmeshProviderMockRecorder

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

MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.

func (*MockmeshProviderMockRecorder) AddBlockWithTXs

func (mr *MockmeshProviderMockRecorder) AddBlockWithTXs(arg0, arg1 interface{}) *gomock.Call

AddBlockWithTXs indicates an expected call of AddBlockWithTXs.

func (*MockmeshProviderMockRecorder) GetBallot

func (mr *MockmeshProviderMockRecorder) GetBallot(arg0 interface{}) *gomock.Call

GetBallot indicates an expected call of GetBallot.

func (*MockmeshProviderMockRecorder) ProcessLayerPerHareOutput

func (mr *MockmeshProviderMockRecorder) ProcessLayerPerHareOutput(arg0, arg1, arg2 interface{}) *gomock.Call

ProcessLayerPerHareOutput indicates an expected call of ProcessLayerPerHareOutput.

func (*MockmeshProviderMockRecorder) RecordCoinflip

func (mr *MockmeshProviderMockRecorder) RecordCoinflip(arg0, arg1, arg2 interface{}) *gomock.Call

RecordCoinflip indicates an expected call of RecordCoinflip.

type MockproposalProvider

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

MockproposalProvider is a mock of proposalProvider interface.

func NewMockproposalProvider

func NewMockproposalProvider(ctrl *gomock.Controller) *MockproposalProvider

NewMockproposalProvider creates a new mock instance.

func (*MockproposalProvider) EXPECT

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

func (*MockproposalProvider) GetProposals

func (m *MockproposalProvider) GetProposals(arg0 []types.ProposalID) ([]*types.Proposal, error)

GetProposals mocks base method.

func (*MockproposalProvider) LayerProposals

func (m *MockproposalProvider) LayerProposals(arg0 types.LayerID) ([]*types.Proposal, error)

LayerProposals mocks base method.

type MockproposalProviderMockRecorder

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

MockproposalProviderMockRecorder is the mock recorder for MockproposalProvider.

func (*MockproposalProviderMockRecorder) GetProposals

func (mr *MockproposalProviderMockRecorder) GetProposals(arg0 interface{}) *gomock.Call

GetProposals indicates an expected call of GetProposals.

func (*MockproposalProviderMockRecorder) LayerProposals

func (mr *MockproposalProviderMockRecorder) LayerProposals(arg0 interface{}) *gomock.Call

LayerProposals indicates an expected call of LayerProposals.

type MockstateQuerier

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

MockstateQuerier is a mock of stateQuerier interface.

func NewMockstateQuerier

func NewMockstateQuerier(ctrl *gomock.Controller) *MockstateQuerier

NewMockstateQuerier creates a new mock instance.

func (*MockstateQuerier) EXPECT

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

func (*MockstateQuerier) IsIdentityActiveOnConsensusView

func (m *MockstateQuerier) IsIdentityActiveOnConsensusView(arg0 context.Context, arg1 string, arg2 types.LayerID) (bool, error)

IsIdentityActiveOnConsensusView mocks base method.

type MockstateQuerierMockRecorder

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

MockstateQuerierMockRecorder is the mock recorder for MockstateQuerier.

func (*MockstateQuerierMockRecorder) IsIdentityActiveOnConsensusView

func (mr *MockstateQuerierMockRecorder) IsIdentityActiveOnConsensusView(arg0, arg1, arg2 interface{}) *gomock.Call

IsIdentityActiveOnConsensusView indicates an expected call of IsIdentityActiveOnConsensusView.

Jump to

Keyboard shortcuts

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