mocks

package
v0.2.26-beta.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: MIT Imports: 5 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 types.VRFPostIndex, arg6 types.VrfSignature) (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 types.NodeID, arg2 types.LayerID) (bool, error)

IsIdentityActiveOnConsensusView mocks base method.

func (*MockRolacle) Proof

func (m *MockRolacle) Proof(arg0 context.Context, arg1 types.VRFPostIndex, arg2 types.LayerID, arg3 uint32) (types.VrfSignature, 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 types.VrfSignature, 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, arg6 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, arg3 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 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 Mockmesh

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

Mockmesh is a mock of mesh interface.

func NewMockmesh

func NewMockmesh(ctrl *gomock.Controller) *Mockmesh

NewMockmesh creates a new mock instance.

func (*Mockmesh) AddMalfeasanceProof

func (m *Mockmesh) AddMalfeasanceProof(arg0 types.NodeID, arg1 *types.MalfeasanceProof, arg2 *sql.Tx) error

AddMalfeasanceProof mocks base method.

func (*Mockmesh) Ballot

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

Ballot mocks base method.

func (*Mockmesh) EXPECT

func (m *Mockmesh) EXPECT() *MockmeshMockRecorder

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

func (*Mockmesh) GetAtxHeader

func (m *Mockmesh) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)

GetAtxHeader mocks base method.

func (*Mockmesh) GetEpochAtx

func (m *Mockmesh) GetEpochAtx(arg0 types.EpochID, arg1 types.NodeID) (*types.ActivationTxHeader, error)

GetEpochAtx mocks base method.

func (*Mockmesh) GetMalfeasanceProof

func (m *Mockmesh) GetMalfeasanceProof(nodeID types.NodeID) (*types.MalfeasanceProof, error)

GetMalfeasanceProof mocks base method.

func (*Mockmesh) IsMalicious

func (m *Mockmesh) IsMalicious(arg0 types.NodeID) (bool, error)

IsMalicious mocks base method.

func (*Mockmesh) Proposals

func (m *Mockmesh) Proposals(arg0 types.LayerID) ([]*types.Proposal, error)

Proposals mocks base method.

func (*Mockmesh) SetWeakCoin

func (m *Mockmesh) SetWeakCoin(arg0 types.LayerID, arg1 bool) error

SetWeakCoin mocks base method.

func (*Mockmesh) VRFNonce

func (m *Mockmesh) VRFNonce(arg0 types.NodeID, arg1 types.EpochID) (types.VRFPostIndex, error)

VRFNonce mocks base method.

type MockmeshMockRecorder

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

MockmeshMockRecorder is the mock recorder for Mockmesh.

func (*MockmeshMockRecorder) AddMalfeasanceProof

func (mr *MockmeshMockRecorder) AddMalfeasanceProof(arg0, arg1, arg2 interface{}) *gomock.Call

AddMalfeasanceProof indicates an expected call of AddMalfeasanceProof.

func (*MockmeshMockRecorder) Ballot

func (mr *MockmeshMockRecorder) Ballot(arg0 interface{}) *gomock.Call

Ballot indicates an expected call of Ballot.

func (*MockmeshMockRecorder) GetAtxHeader

func (mr *MockmeshMockRecorder) GetAtxHeader(arg0 interface{}) *gomock.Call

GetAtxHeader indicates an expected call of GetAtxHeader.

func (*MockmeshMockRecorder) GetEpochAtx

func (mr *MockmeshMockRecorder) GetEpochAtx(arg0, arg1 interface{}) *gomock.Call

GetEpochAtx indicates an expected call of GetEpochAtx.

func (*MockmeshMockRecorder) GetMalfeasanceProof

func (mr *MockmeshMockRecorder) GetMalfeasanceProof(nodeID interface{}) *gomock.Call

GetMalfeasanceProof indicates an expected call of GetMalfeasanceProof.

func (*MockmeshMockRecorder) IsMalicious

func (mr *MockmeshMockRecorder) IsMalicious(arg0 interface{}) *gomock.Call

IsMalicious indicates an expected call of IsMalicious.

func (*MockmeshMockRecorder) Proposals

func (mr *MockmeshMockRecorder) Proposals(arg0 interface{}) *gomock.Call

Proposals indicates an expected call of Proposals.

func (*MockmeshMockRecorder) SetWeakCoin

func (mr *MockmeshMockRecorder) SetWeakCoin(arg0, arg1 interface{}) *gomock.Call

SetWeakCoin indicates an expected call of SetWeakCoin.

func (*MockmeshMockRecorder) VRFNonce

func (mr *MockmeshMockRecorder) VRFNonce(arg0, arg1 interface{}) *gomock.Call

VRFNonce indicates an expected call of VRFNonce.

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 types.NodeID, 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