Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockRolacle
- func (m *MockRolacle) CalcEligibility(arg0 context.Context, arg1 types.LayerID, arg2 uint32, arg3 int, ...) (uint16, error)
- func (m *MockRolacle) EXPECT() *MockRolacleMockRecorder
- func (m *MockRolacle) IsIdentityActiveOnConsensusView(arg0 context.Context, arg1 types.NodeID, arg2 types.LayerID) (bool, error)
- func (m *MockRolacle) Proof(arg0 context.Context, arg1 types.LayerID, arg2 uint32) (types.VrfSignature, error)
- func (m *MockRolacle) Validate(arg0 context.Context, arg1 types.LayerID, arg2 uint32, arg3 int, ...) (bool, error)
- type MockRolacleMockRecorder
- func (mr *MockRolacleMockRecorder) CalcEligibility(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *RolacleCalcEligibilityCall
- func (mr *MockRolacleMockRecorder) IsIdentityActiveOnConsensusView(arg0, arg1, arg2 interface{}) *RolacleIsIdentityActiveOnConsensusViewCall
- func (mr *MockRolacleMockRecorder) Proof(arg0, arg1, arg2 interface{}) *RolacleProofCall
- func (mr *MockRolacleMockRecorder) Validate(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *RolacleValidateCall
- type MocklayerPatrol
- type MocklayerPatrolMockRecorder
- type Mockmesh
- func (m *Mockmesh) Ballot(arg0 types.BallotID) (*types.Ballot, error)
- func (m *Mockmesh) Cache() *datastore.CachedDB
- func (m *Mockmesh) EXPECT() *MockmeshMockRecorder
- func (m *Mockmesh) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)
- func (m *Mockmesh) GetEpochAtx(arg0 types.EpochID, arg1 types.NodeID) (*types.ActivationTxHeader, error)
- func (m *Mockmesh) GetMalfeasanceProof(arg0 types.NodeID) (*types.MalfeasanceProof, error)
- func (m *Mockmesh) Proposals(arg0 types.LayerID) ([]*types.Proposal, error)
- type MockmeshMockRecorder
- func (mr *MockmeshMockRecorder) Ballot(arg0 interface{}) *meshBallotCall
- func (mr *MockmeshMockRecorder) Cache() *meshCacheCall
- func (mr *MockmeshMockRecorder) GetAtxHeader(arg0 interface{}) *meshGetAtxHeaderCall
- func (mr *MockmeshMockRecorder) GetEpochAtx(arg0, arg1 interface{}) *meshGetEpochAtxCall
- func (mr *MockmeshMockRecorder) GetMalfeasanceProof(arg0 interface{}) *meshGetMalfeasanceProofCall
- func (mr *MockmeshMockRecorder) Proposals(arg0 interface{}) *meshProposalsCall
- type MockstateQuerier
- type MockstateQuerierMockRecorder
- type MockweakCoin
- type MockweakCoinMockRecorder
- type RolacleCalcEligibilityCall
- type RolacleIsIdentityActiveOnConsensusViewCall
- func (c *RolacleIsIdentityActiveOnConsensusViewCall) Do(f func(context.Context, types.NodeID, types.LayerID) (bool, error)) *RolacleIsIdentityActiveOnConsensusViewCall
- func (c *RolacleIsIdentityActiveOnConsensusViewCall) DoAndReturn(f func(context.Context, types.NodeID, types.LayerID) (bool, error)) *RolacleIsIdentityActiveOnConsensusViewCall
- func (c *RolacleIsIdentityActiveOnConsensusViewCall) Return(arg0 bool, arg1 error) *RolacleIsIdentityActiveOnConsensusViewCall
- type RolacleProofCall
- func (c *RolacleProofCall) Do(f func(context.Context, types.LayerID, uint32) (types.VrfSignature, error)) *RolacleProofCall
- func (c *RolacleProofCall) DoAndReturn(f func(context.Context, types.LayerID, uint32) (types.VrfSignature, error)) *RolacleProofCall
- func (c *RolacleProofCall) Return(arg0 types.VrfSignature, arg1 error) *RolacleProofCall
- type RolacleValidateCall
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.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.
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{}) *RolacleCalcEligibilityCall
CalcEligibility indicates an expected call of CalcEligibility.
func (*MockRolacleMockRecorder) IsIdentityActiveOnConsensusView ¶
func (mr *MockRolacleMockRecorder) IsIdentityActiveOnConsensusView(arg0, arg1, arg2 interface{}) *RolacleIsIdentityActiveOnConsensusViewCall
IsIdentityActiveOnConsensusView indicates an expected call of IsIdentityActiveOnConsensusView.
func (*MockRolacleMockRecorder) Proof ¶
func (mr *MockRolacleMockRecorder) Proof(arg0, arg1, arg2 interface{}) *RolacleProofCall
Proof indicates an expected call of Proof.
func (*MockRolacleMockRecorder) Validate ¶
func (mr *MockRolacleMockRecorder) Validate(arg0, arg1, arg2, arg3, arg4, arg5, arg6 interface{}) *RolacleValidateCall
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{}) *layerPatrolSetHareInChargeCall
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) EXPECT ¶
func (m *Mockmesh) EXPECT() *MockmeshMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockmesh) GetAtxHeader ¶
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 ¶
GetMalfeasanceProof mocks base method.
type MockmeshMockRecorder ¶
type MockmeshMockRecorder struct {
// contains filtered or unexported fields
}
MockmeshMockRecorder is the mock recorder for Mockmesh.
func (*MockmeshMockRecorder) Ballot ¶
func (mr *MockmeshMockRecorder) Ballot(arg0 interface{}) *meshBallotCall
Ballot indicates an expected call of Ballot.
func (*MockmeshMockRecorder) Cache ¶
func (mr *MockmeshMockRecorder) Cache() *meshCacheCall
Cache indicates an expected call of Cache.
func (*MockmeshMockRecorder) GetAtxHeader ¶
func (mr *MockmeshMockRecorder) GetAtxHeader(arg0 interface{}) *meshGetAtxHeaderCall
GetAtxHeader indicates an expected call of GetAtxHeader.
func (*MockmeshMockRecorder) GetEpochAtx ¶
func (mr *MockmeshMockRecorder) GetEpochAtx(arg0, arg1 interface{}) *meshGetEpochAtxCall
GetEpochAtx indicates an expected call of GetEpochAtx.
func (*MockmeshMockRecorder) GetMalfeasanceProof ¶
func (mr *MockmeshMockRecorder) GetMalfeasanceProof(arg0 interface{}) *meshGetMalfeasanceProofCall
GetMalfeasanceProof indicates an expected call of GetMalfeasanceProof.
func (*MockmeshMockRecorder) Proposals ¶
func (mr *MockmeshMockRecorder) Proposals(arg0 interface{}) *meshProposalsCall
Proposals indicates an expected call of Proposals.
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 ¶
func (m *MockstateQuerier) EXPECT() *MockstateQuerierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
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{}) *stateQuerierIsIdentityActiveOnConsensusViewCall
IsIdentityActiveOnConsensusView indicates an expected call of IsIdentityActiveOnConsensusView.
type MockweakCoin ¶
type MockweakCoin struct {
// contains filtered or unexported fields
}
MockweakCoin is a mock of weakCoin interface.
func NewMockweakCoin ¶
func NewMockweakCoin(ctrl *gomock.Controller) *MockweakCoin
NewMockweakCoin creates a new mock instance.
func (*MockweakCoin) EXPECT ¶
func (m *MockweakCoin) EXPECT() *MockweakCoinMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockweakCoinMockRecorder ¶
type MockweakCoinMockRecorder struct {
// contains filtered or unexported fields
}
MockweakCoinMockRecorder is the mock recorder for MockweakCoin.
func (*MockweakCoinMockRecorder) Set ¶
func (mr *MockweakCoinMockRecorder) Set(arg0, arg1 interface{}) *weakCoinSetCall
Set indicates an expected call of Set.
type RolacleCalcEligibilityCall ¶ added in v1.1.5
RolacleCalcEligibilityCall wrap *gomock.Call
func (*RolacleCalcEligibilityCall) Do ¶ added in v1.1.5
func (c *RolacleCalcEligibilityCall) Do(f func(context.Context, types.LayerID, uint32, int, types.NodeID, types.VrfSignature) (uint16, error)) *RolacleCalcEligibilityCall
Do rewrite *gomock.Call.Do
func (*RolacleCalcEligibilityCall) DoAndReturn ¶ added in v1.1.5
func (c *RolacleCalcEligibilityCall) DoAndReturn(f func(context.Context, types.LayerID, uint32, int, types.NodeID, types.VrfSignature) (uint16, error)) *RolacleCalcEligibilityCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RolacleCalcEligibilityCall) Return ¶ added in v1.1.5
func (c *RolacleCalcEligibilityCall) Return(arg0 uint16, arg1 error) *RolacleCalcEligibilityCall
Return rewrite *gomock.Call.Return
type RolacleIsIdentityActiveOnConsensusViewCall ¶ added in v1.1.5
RolacleIsIdentityActiveOnConsensusViewCall wrap *gomock.Call
func (*RolacleIsIdentityActiveOnConsensusViewCall) Do ¶ added in v1.1.5
func (c *RolacleIsIdentityActiveOnConsensusViewCall) Do(f func(context.Context, types.NodeID, types.LayerID) (bool, error)) *RolacleIsIdentityActiveOnConsensusViewCall
Do rewrite *gomock.Call.Do
func (*RolacleIsIdentityActiveOnConsensusViewCall) DoAndReturn ¶ added in v1.1.5
func (c *RolacleIsIdentityActiveOnConsensusViewCall) DoAndReturn(f func(context.Context, types.NodeID, types.LayerID) (bool, error)) *RolacleIsIdentityActiveOnConsensusViewCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RolacleIsIdentityActiveOnConsensusViewCall) Return ¶ added in v1.1.5
func (c *RolacleIsIdentityActiveOnConsensusViewCall) Return(arg0 bool, arg1 error) *RolacleIsIdentityActiveOnConsensusViewCall
Return rewrite *gomock.Call.Return
type RolacleProofCall ¶ added in v1.1.5
RolacleProofCall wrap *gomock.Call
func (*RolacleProofCall) Do ¶ added in v1.1.5
func (c *RolacleProofCall) Do(f func(context.Context, types.LayerID, uint32) (types.VrfSignature, error)) *RolacleProofCall
Do rewrite *gomock.Call.Do
func (*RolacleProofCall) DoAndReturn ¶ added in v1.1.5
func (c *RolacleProofCall) DoAndReturn(f func(context.Context, types.LayerID, uint32) (types.VrfSignature, error)) *RolacleProofCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RolacleProofCall) Return ¶ added in v1.1.5
func (c *RolacleProofCall) Return(arg0 types.VrfSignature, arg1 error) *RolacleProofCall
Return rewrite *gomock.Call.Return
type RolacleValidateCall ¶ added in v1.1.5
RolacleValidateCall wrap *gomock.Call
func (*RolacleValidateCall) Do ¶ added in v1.1.5
func (c *RolacleValidateCall) Do(f func(context.Context, types.LayerID, uint32, int, types.NodeID, types.VrfSignature, uint16) (bool, error)) *RolacleValidateCall
Do rewrite *gomock.Call.Do
func (*RolacleValidateCall) DoAndReturn ¶ added in v1.1.5
func (c *RolacleValidateCall) DoAndReturn(f func(context.Context, types.LayerID, uint32, int, types.NodeID, types.VrfSignature, uint16) (bool, error)) *RolacleValidateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*RolacleValidateCall) Return ¶ added in v1.1.5
func (c *RolacleValidateCall) Return(arg0 bool, arg1 error) *RolacleValidateCall
Return rewrite *gomock.Call.Return