Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockRolacle
- func (m *MockRolacle) CalcEligibility(ctx context.Context, layer types.LayerID, round uint32, committeeSize int, ...) (uint16, error)
- func (m *MockRolacle) EXPECT() *MockRolacleMockRecorder
- func (m *MockRolacle) IsIdentityActiveOnConsensusView(ctx context.Context, edID string, layer types.LayerID) (bool, error)
- func (m *MockRolacle) Proof(ctx context.Context, layer types.LayerID, round uint32) ([]byte, error)
- func (m *MockRolacle) Validate(ctx context.Context, layer types.LayerID, round uint32, committeeSize int, ...) (bool, error)
- type MockRolacleMockRecorder
- func (mr *MockRolacleMockRecorder) CalcEligibility(ctx, layer, round, committeeSize, id, sig interface{}) *gomock.Call
- func (mr *MockRolacleMockRecorder) IsIdentityActiveOnConsensusView(ctx, edID, layer interface{}) *gomock.Call
- func (mr *MockRolacleMockRecorder) Proof(ctx, layer, round interface{}) *gomock.Call
- func (mr *MockRolacleMockRecorder) Validate(ctx, layer, round, committeeSize, id, sig, eligibilityCount interface{}) *gomock.Call
- type MocklayerPatrol
- type MocklayerPatrolMockRecorder
- type MockmeshProvider
- func (m *MockmeshProvider) EXPECT() *MockmeshProviderMockRecorder
- func (m *MockmeshProvider) GetBlock(arg0 types.BlockID) (*types.Block, error)
- func (m *MockmeshProvider) HandleValidatedLayer(ctx context.Context, validatedLayer types.LayerID, layer []types.BlockID)
- func (m *MockmeshProvider) InvalidateLayer(ctx context.Context, layerID types.LayerID)
- func (m *MockmeshProvider) LayerBlocks(arg0 types.LayerID) ([]*types.Block, error)
- func (m *MockmeshProvider) RecordCoinflip(ctx context.Context, layerID types.LayerID, coinflip bool)
- type MockmeshProviderMockRecorder
- func (mr *MockmeshProviderMockRecorder) GetBlock(arg0 interface{}) *gomock.Call
- func (mr *MockmeshProviderMockRecorder) HandleValidatedLayer(ctx, validatedLayer, layer interface{}) *gomock.Call
- func (mr *MockmeshProviderMockRecorder) InvalidateLayer(ctx, layerID interface{}) *gomock.Call
- func (mr *MockmeshProviderMockRecorder) LayerBlocks(arg0 interface{}) *gomock.Call
- func (mr *MockmeshProviderMockRecorder) RecordCoinflip(ctx, layerID, coinflip interface{}) *gomock.Call
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.
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 ¶
func (m *MocklayerPatrol) EXPECT() *MocklayerPatrolMockRecorder
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 ¶
func (m *MockmeshProvider) EXPECT() *MockmeshProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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 ¶
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.