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) GetAtxTimestamp(arg0 types.ATXID) (time.Time, error)
- func (m *MockactivationDB) GetEpochWeight(arg0 types.EpochID) (uint64, []types.ATXID, error)
- func (m *MockactivationDB) GetNodeAtxIDForEpoch(arg0 types.NodeID, arg1 types.EpochID) (types.ATXID, error)
- type MockactivationDBMockRecorder
- func (mr *MockactivationDBMockRecorder) GetAtxHeader(arg0 interface{}) *gomock.Call
- func (mr *MockactivationDBMockRecorder) GetAtxTimestamp(arg0 interface{}) *gomock.Call
- func (mr *MockactivationDBMockRecorder) GetEpochWeight(arg0 interface{}) *gomock.Call
- func (mr *MockactivationDBMockRecorder) GetNodeAtxIDForEpoch(arg0, arg1 interface{}) *gomock.Call
- type Mockcoin
- func (m *Mockcoin) EXPECT() *MockcoinMockRecorder
- func (m *Mockcoin) FinishEpoch(arg0 context.Context, arg1 types.EpochID)
- func (m *Mockcoin) FinishRound(arg0 context.Context)
- func (m *Mockcoin) Get(arg0 context.Context, arg1 types.EpochID, arg2 types.RoundID) bool
- func (m *Mockcoin) HandleProposal(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) pubsub.ValidationResult
- func (m *Mockcoin) StartEpoch(arg0 context.Context, arg1 types.EpochID, arg2 weakcoin.UnitAllowances)
- func (m *Mockcoin) StartRound(arg0 context.Context, arg1 types.RoundID) error
- type MockcoinMockRecorder
- func (mr *MockcoinMockRecorder) FinishEpoch(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) FinishRound(arg0 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) HandleProposal(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) StartEpoch(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockcoinMockRecorder) StartRound(arg0, arg1 interface{}) *gomock.Call
- type MockeligibilityChecker
- type MockeligibilityCheckerMockRecorder
- type MocklayerClock
- func (m *MocklayerClock) EXPECT() *MocklayerClockMockRecorder
- func (m *MocklayerClock) GetCurrentLayer() types.LayerID
- func (m *MocklayerClock) LayerToTime(arg0 types.LayerID) time.Time
- func (m *MocklayerClock) Subscribe() timesync.LayerTimer
- func (m *MocklayerClock) Unsubscribe(arg0 timesync.LayerTimer)
- type MocklayerClockMockRecorder
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) GetAtxTimestamp ¶
GetAtxTimestamp mocks base method.
func (*MockactivationDB) GetEpochWeight ¶
GetEpochWeight mocks base method.
func (*MockactivationDB) GetNodeAtxIDForEpoch ¶
func (m *MockactivationDB) GetNodeAtxIDForEpoch(arg0 types.NodeID, arg1 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) GetAtxTimestamp ¶
func (mr *MockactivationDBMockRecorder) GetAtxTimestamp(arg0 interface{}) *gomock.Call
GetAtxTimestamp indicates an expected call of GetAtxTimestamp.
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(arg0, arg1 interface{}) *gomock.Call
GetNodeAtxIDForEpoch indicates an expected call of GetNodeAtxIDForEpoch.
type Mockcoin ¶
type Mockcoin struct {
// contains filtered or unexported fields
}
Mockcoin is a mock of coin interface.
func NewMockcoin ¶
func NewMockcoin(ctrl *gomock.Controller) *Mockcoin
NewMockcoin creates a new mock instance.
func (*Mockcoin) EXPECT ¶
func (m *Mockcoin) EXPECT() *MockcoinMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockcoin) FinishEpoch ¶
FinishEpoch mocks base method.
func (*Mockcoin) FinishRound ¶
FinishRound mocks base method.
func (*Mockcoin) HandleProposal ¶
func (m *Mockcoin) HandleProposal(arg0 context.Context, arg1 p2p.Peer, arg2 []byte) pubsub.ValidationResult
HandleProposal mocks base method.
func (*Mockcoin) StartEpoch ¶
func (m *Mockcoin) StartEpoch(arg0 context.Context, arg1 types.EpochID, arg2 weakcoin.UnitAllowances)
StartEpoch mocks base method.
type MockcoinMockRecorder ¶
type MockcoinMockRecorder struct {
// contains filtered or unexported fields
}
MockcoinMockRecorder is the mock recorder for Mockcoin.
func (*MockcoinMockRecorder) FinishEpoch ¶
func (mr *MockcoinMockRecorder) FinishEpoch(arg0, arg1 interface{}) *gomock.Call
FinishEpoch indicates an expected call of FinishEpoch.
func (*MockcoinMockRecorder) FinishRound ¶
func (mr *MockcoinMockRecorder) FinishRound(arg0 interface{}) *gomock.Call
FinishRound indicates an expected call of FinishRound.
func (*MockcoinMockRecorder) Get ¶
func (mr *MockcoinMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockcoinMockRecorder) HandleProposal ¶
func (mr *MockcoinMockRecorder) HandleProposal(arg0, arg1, arg2 interface{}) *gomock.Call
HandleProposal indicates an expected call of HandleProposal.
func (*MockcoinMockRecorder) StartEpoch ¶
func (mr *MockcoinMockRecorder) StartEpoch(arg0, arg1, arg2 interface{}) *gomock.Call
StartEpoch indicates an expected call of StartEpoch.
func (*MockcoinMockRecorder) StartRound ¶
func (mr *MockcoinMockRecorder) StartRound(arg0, arg1 interface{}) *gomock.Call
StartRound indicates an expected call of StartRound.
type MockeligibilityChecker ¶
type MockeligibilityChecker struct {
// contains filtered or unexported fields
}
MockeligibilityChecker is a mock of eligibilityChecker interface.
func NewMockeligibilityChecker ¶
func NewMockeligibilityChecker(ctrl *gomock.Controller) *MockeligibilityChecker
NewMockeligibilityChecker creates a new mock instance.
func (*MockeligibilityChecker) EXPECT ¶
func (m *MockeligibilityChecker) EXPECT() *MockeligibilityCheckerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockeligibilityChecker) IsProposalEligible ¶
func (m *MockeligibilityChecker) IsProposalEligible(arg0 []byte) bool
IsProposalEligible mocks base method.
type MockeligibilityCheckerMockRecorder ¶
type MockeligibilityCheckerMockRecorder struct {
// contains filtered or unexported fields
}
MockeligibilityCheckerMockRecorder is the mock recorder for MockeligibilityChecker.
func (*MockeligibilityCheckerMockRecorder) IsProposalEligible ¶
func (mr *MockeligibilityCheckerMockRecorder) IsProposalEligible(arg0 interface{}) *gomock.Call
IsProposalEligible indicates an expected call of IsProposalEligible.
type MocklayerClock ¶
type MocklayerClock struct {
// contains filtered or unexported fields
}
MocklayerClock is a mock of layerClock interface.
func NewMocklayerClock ¶
func NewMocklayerClock(ctrl *gomock.Controller) *MocklayerClock
NewMocklayerClock creates a new mock instance.
func (*MocklayerClock) EXPECT ¶
func (m *MocklayerClock) EXPECT() *MocklayerClockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocklayerClock) GetCurrentLayer ¶
func (m *MocklayerClock) GetCurrentLayer() types.LayerID
GetCurrentLayer mocks base method.
func (*MocklayerClock) LayerToTime ¶
func (m *MocklayerClock) LayerToTime(arg0 types.LayerID) time.Time
LayerToTime mocks base method.
func (*MocklayerClock) Subscribe ¶
func (m *MocklayerClock) Subscribe() timesync.LayerTimer
Subscribe mocks base method.
func (*MocklayerClock) Unsubscribe ¶
func (m *MocklayerClock) Unsubscribe(arg0 timesync.LayerTimer)
Unsubscribe mocks base method.
type MocklayerClockMockRecorder ¶
type MocklayerClockMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerClockMockRecorder is the mock recorder for MocklayerClock.
func (*MocklayerClockMockRecorder) GetCurrentLayer ¶
func (mr *MocklayerClockMockRecorder) GetCurrentLayer() *gomock.Call
GetCurrentLayer indicates an expected call of GetCurrentLayer.
func (*MocklayerClockMockRecorder) LayerToTime ¶
func (mr *MocklayerClockMockRecorder) LayerToTime(arg0 interface{}) *gomock.Call
LayerToTime indicates an expected call of LayerToTime.
func (*MocklayerClockMockRecorder) Subscribe ¶
func (mr *MocklayerClockMockRecorder) Subscribe() *gomock.Call
Subscribe indicates an expected call of Subscribe.
func (*MocklayerClockMockRecorder) Unsubscribe ¶
func (mr *MocklayerClockMockRecorder) Unsubscribe(arg0 interface{}) *gomock.Call
Unsubscribe indicates an expected call of Unsubscribe.