mocks

package
v0.2.5-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 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(ctx context.Context, layer types.LayerID, round uint32, committeeSize int, id types.NodeID, sig []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(ctx context.Context, edID string, layer types.LayerID) (bool, error)

IsIdentityActiveOnConsensusView mocks base method.

func (*MockRolacle) Proof

func (m *MockRolacle) Proof(ctx context.Context, layer types.LayerID, round uint32) ([]byte, error)

Proof mocks base method.

func (*MockRolacle) Validate

func (m *MockRolacle) Validate(ctx context.Context, layer types.LayerID, round uint32, committeeSize int, id types.NodeID, sig []byte, eligibilityCount 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(ctx, layer, round, committeeSize, id, sig interface{}) *gomock.Call

CalcEligibility indicates an expected call of CalcEligibility.

func (*MockRolacleMockRecorder) IsIdentityActiveOnConsensusView

func (mr *MockRolacleMockRecorder) IsIdentityActiveOnConsensusView(ctx, edID, layer interface{}) *gomock.Call

IsIdentityActiveOnConsensusView indicates an expected call of IsIdentityActiveOnConsensusView.

func (*MockRolacleMockRecorder) Proof

func (mr *MockRolacleMockRecorder) Proof(ctx, layer, round interface{}) *gomock.Call

Proof indicates an expected call of Proof.

func (*MockRolacleMockRecorder) Validate

func (mr *MockRolacleMockRecorder) Validate(ctx, layer, round, committeeSize, id, sig, eligibilityCount interface{}) *gomock.Call

Validate indicates an expected call of Validate.

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) 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) 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) EXPECT

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

func (*MockmeshProvider) GetBlock

func (m *MockmeshProvider) GetBlock(arg0 types.BlockID) (*types.Block, error)

GetBlock mocks base method.

func (*MockmeshProvider) HandleValidatedLayer

func (m *MockmeshProvider) HandleValidatedLayer(ctx context.Context, validatedLayer types.LayerID, layer []types.BlockID)

HandleValidatedLayer mocks base method.

func (*MockmeshProvider) InvalidateLayer

func (m *MockmeshProvider) InvalidateLayer(ctx context.Context, layerID types.LayerID)

InvalidateLayer mocks base method.

func (*MockmeshProvider) LayerBlocks

func (m *MockmeshProvider) LayerBlocks(arg0 types.LayerID) ([]*types.Block, error)

LayerBlocks mocks base method.

func (*MockmeshProvider) RecordCoinflip

func (m *MockmeshProvider) RecordCoinflip(ctx context.Context, layerID types.LayerID, coinflip bool)

RecordCoinflip mocks base method.

type MockmeshProviderMockRecorder

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

MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.

func (*MockmeshProviderMockRecorder) GetBlock

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

GetBlock indicates an expected call of GetBlock.

func (*MockmeshProviderMockRecorder) HandleValidatedLayer

func (mr *MockmeshProviderMockRecorder) HandleValidatedLayer(ctx, validatedLayer, layer interface{}) *gomock.Call

HandleValidatedLayer indicates an expected call of HandleValidatedLayer.

func (*MockmeshProviderMockRecorder) InvalidateLayer

func (mr *MockmeshProviderMockRecorder) InvalidateLayer(ctx, layerID interface{}) *gomock.Call

InvalidateLayer indicates an expected call of InvalidateLayer.

func (*MockmeshProviderMockRecorder) LayerBlocks

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

LayerBlocks indicates an expected call of LayerBlocks.

func (*MockmeshProviderMockRecorder) RecordCoinflip

func (mr *MockmeshProviderMockRecorder) RecordCoinflip(ctx, layerID, coinflip interface{}) *gomock.Call

RecordCoinflip indicates an expected call of RecordCoinflip.

Jump to

Keyboard shortcuts

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