Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockactivationDB
- func (m *MockactivationDB) EXPECT() *MockactivationDBMockRecorder
- func (m *MockactivationDB) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)
- func (m *MockactivationDB) GetEpochWeight(arg0 types.EpochID) (uint64, []types.ATXID, error)
- func (m *MockactivationDB) GetNodeAtxIDForEpoch(nodeID types.NodeID, targetEpoch types.EpochID) (types.ATXID, error)
- type MockactivationDBMockRecorder
- type MockconservativeState
- type MockconservativeStateMockRecorder
- type MockmeshProvider
- type MockmeshProviderMockRecorder
- type MockproposalOracle
- type MockproposalOracleMockRecorder
- type MockvotesEncoder
- type MockvotesEncoderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockactivationDB ¶
type MockactivationDB struct {
// contains filtered or unexported fields
}
MockactivationDB is a mock of activationDB interface.
func NewMockactivationDB ¶
func NewMockactivationDB(ctrl *gomock.Controller) *MockactivationDB
NewMockactivationDB creates a new mock instance.
func (*MockactivationDB) EXPECT ¶
func (m *MockactivationDB) EXPECT() *MockactivationDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockactivationDB) GetAtxHeader ¶
func (m *MockactivationDB) GetAtxHeader(arg0 types.ATXID) (*types.ActivationTxHeader, error)
GetAtxHeader mocks base method.
func (*MockactivationDB) GetEpochWeight ¶
GetEpochWeight mocks base method.
func (*MockactivationDB) GetNodeAtxIDForEpoch ¶
func (m *MockactivationDB) GetNodeAtxIDForEpoch(nodeID types.NodeID, targetEpoch types.EpochID) (types.ATXID, error)
GetNodeAtxIDForEpoch mocks base method.
type MockactivationDBMockRecorder ¶
type MockactivationDBMockRecorder struct {
// contains filtered or unexported fields
}
MockactivationDBMockRecorder is the mock recorder for MockactivationDB.
func (*MockactivationDBMockRecorder) GetAtxHeader ¶
func (mr *MockactivationDBMockRecorder) GetAtxHeader(arg0 interface{}) *gomock.Call
GetAtxHeader indicates an expected call of GetAtxHeader.
func (*MockactivationDBMockRecorder) GetEpochWeight ¶
func (mr *MockactivationDBMockRecorder) GetEpochWeight(arg0 interface{}) *gomock.Call
GetEpochWeight indicates an expected call of GetEpochWeight.
func (*MockactivationDBMockRecorder) GetNodeAtxIDForEpoch ¶
func (mr *MockactivationDBMockRecorder) GetNodeAtxIDForEpoch(nodeID, targetEpoch interface{}) *gomock.Call
GetNodeAtxIDForEpoch indicates an expected call of GetNodeAtxIDForEpoch.
type MockconservativeState ¶
type MockconservativeState struct {
// contains filtered or unexported fields
}
MockconservativeState is a mock of conservativeState interface.
func NewMockconservativeState ¶
func NewMockconservativeState(ctrl *gomock.Controller) *MockconservativeState
NewMockconservativeState creates a new mock instance.
func (*MockconservativeState) EXPECT ¶
func (m *MockconservativeState) EXPECT() *MockconservativeStateMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockconservativeState) SelectProposalTXs ¶
func (m *MockconservativeState) SelectProposalTXs(arg0 int) []types.TransactionID
SelectProposalTXs mocks base method.
type MockconservativeStateMockRecorder ¶
type MockconservativeStateMockRecorder struct {
// contains filtered or unexported fields
}
MockconservativeStateMockRecorder is the mock recorder for MockconservativeState.
func (*MockconservativeStateMockRecorder) SelectProposalTXs ¶
func (mr *MockconservativeStateMockRecorder) SelectProposalTXs(arg0 interface{}) *gomock.Call
SelectProposalTXs indicates an expected call of SelectProposalTXs.
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) GetAggregatedLayerHash ¶
GetAggregatedLayerHash mocks base method.
type MockmeshProviderMockRecorder ¶
type MockmeshProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.
func (*MockmeshProviderMockRecorder) GetAggregatedLayerHash ¶
func (mr *MockmeshProviderMockRecorder) GetAggregatedLayerHash(arg0 interface{}) *gomock.Call
GetAggregatedLayerHash indicates an expected call of GetAggregatedLayerHash.
type MockproposalOracle ¶
type MockproposalOracle struct {
// contains filtered or unexported fields
}
MockproposalOracle is a mock of proposalOracle interface.
func NewMockproposalOracle ¶
func NewMockproposalOracle(ctrl *gomock.Controller) *MockproposalOracle
NewMockproposalOracle creates a new mock instance.
func (*MockproposalOracle) EXPECT ¶
func (m *MockproposalOracle) EXPECT() *MockproposalOracleMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockproposalOracle) GetProposalEligibility ¶
func (m *MockproposalOracle) GetProposalEligibility(arg0 types.LayerID, arg1 types.Beacon) (types.ATXID, []types.ATXID, []types.VotingEligibilityProof, error)
GetProposalEligibility mocks base method.
type MockproposalOracleMockRecorder ¶
type MockproposalOracleMockRecorder struct {
// contains filtered or unexported fields
}
MockproposalOracleMockRecorder is the mock recorder for MockproposalOracle.
func (*MockproposalOracleMockRecorder) GetProposalEligibility ¶
func (mr *MockproposalOracleMockRecorder) GetProposalEligibility(arg0, arg1 interface{}) *gomock.Call
GetProposalEligibility indicates an expected call of GetProposalEligibility.
type MockvotesEncoder ¶
type MockvotesEncoder struct {
// contains filtered or unexported fields
}
MockvotesEncoder is a mock of votesEncoder interface.
func NewMockvotesEncoder ¶
func NewMockvotesEncoder(ctrl *gomock.Controller) *MockvotesEncoder
NewMockvotesEncoder creates a new mock instance.
func (*MockvotesEncoder) EXPECT ¶
func (m *MockvotesEncoder) EXPECT() *MockvotesEncoderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockvotesEncoder) EncodeVotes ¶
func (m *MockvotesEncoder) EncodeVotes(arg0 context.Context, arg1 ...tortoise.EncodeVotesOpts) (*types.Votes, error)
EncodeVotes mocks base method.
type MockvotesEncoderMockRecorder ¶
type MockvotesEncoderMockRecorder struct {
// contains filtered or unexported fields
}
MockvotesEncoderMockRecorder is the mock recorder for MockvotesEncoder.
func (*MockvotesEncoderMockRecorder) EncodeVotes ¶
func (mr *MockvotesEncoderMockRecorder) EncodeVotes(arg0 interface{}, arg1 ...interface{}) *gomock.Call
EncodeVotes indicates an expected call of EncodeVotes.