Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./interface.go
Generated by this command:
mockgen -typed -package=mocks -destination=./mocks/mocks.go -source=./interface.go
Package mocks is a generated GoMock package.
Index ¶
- type Mockcertifier
- type MockcertifierMockRecorder
- type Mockexecutor
- type MockexecutorMockRecorder
- type MocklayerClock
- type MocklayerClockMockRecorder
- type MocklayerPatrol
- type MocklayerPatrolMockRecorder
- type MockmeshProvider
- func (m *MockmeshProvider) AddBlockWithTXs(arg0 context.Context, arg1 *types.Block) error
- func (m *MockmeshProvider) EXPECT() *MockmeshProviderMockRecorder
- func (m *MockmeshProvider) ProcessLayerPerHareOutput(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, arg3 bool) error
- func (m *MockmeshProvider) ProcessedLayer() types.LayerID
- type MockmeshProviderMockRecorder
- func (mr *MockmeshProviderMockRecorder) AddBlockWithTXs(arg0, arg1 any) *meshProviderAddBlockWithTXsCall
- func (mr *MockmeshProviderMockRecorder) ProcessLayerPerHareOutput(arg0, arg1, arg2, arg3 any) *meshProviderProcessLayerPerHareOutputCall
- func (mr *MockmeshProviderMockRecorder) ProcessedLayer() *meshProviderProcessedLayerCall
- type MocktortoiseProvider
- type MocktortoiseProviderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mockcertifier ¶
type Mockcertifier struct {
// contains filtered or unexported fields
}
Mockcertifier is a mock of certifier interface.
func NewMockcertifier ¶
func NewMockcertifier(ctrl *gomock.Controller) *Mockcertifier
NewMockcertifier creates a new mock instance.
func (*Mockcertifier) CertifyIfEligible ¶
func (m *Mockcertifier) CertifyIfEligible(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID) error
CertifyIfEligible mocks base method.
func (*Mockcertifier) EXPECT ¶
func (m *Mockcertifier) EXPECT() *MockcertifierMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockcertifier) RegisterForCert ¶
func (m *Mockcertifier) RegisterForCert(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID) error
RegisterForCert mocks base method.
type MockcertifierMockRecorder ¶
type MockcertifierMockRecorder struct {
// contains filtered or unexported fields
}
MockcertifierMockRecorder is the mock recorder for Mockcertifier.
func (*MockcertifierMockRecorder) CertifyIfEligible ¶
func (mr *MockcertifierMockRecorder) CertifyIfEligible(arg0, arg1, arg2 any) *certifierCertifyIfEligibleCall
CertifyIfEligible indicates an expected call of CertifyIfEligible.
func (*MockcertifierMockRecorder) RegisterForCert ¶
func (mr *MockcertifierMockRecorder) RegisterForCert(arg0, arg1, arg2 any) *certifierRegisterForCertCall
RegisterForCert indicates an expected call of RegisterForCert.
type Mockexecutor ¶
type Mockexecutor struct {
// contains filtered or unexported fields
}
Mockexecutor is a mock of executor interface.
func NewMockexecutor ¶
func NewMockexecutor(ctrl *gomock.Controller) *Mockexecutor
NewMockexecutor creates a new mock instance.
func (*Mockexecutor) EXPECT ¶
func (m *Mockexecutor) EXPECT() *MockexecutorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*Mockexecutor) ExecuteOptimistic ¶
func (m *Mockexecutor) ExecuteOptimistic(arg0 context.Context, arg1 types.LayerID, arg2 uint64, arg3 []types.AnyReward, arg4 []types.TransactionID) (*types.Block, error)
ExecuteOptimistic mocks base method.
type MockexecutorMockRecorder ¶
type MockexecutorMockRecorder struct {
// contains filtered or unexported fields
}
MockexecutorMockRecorder is the mock recorder for Mockexecutor.
func (*MockexecutorMockRecorder) ExecuteOptimistic ¶
func (mr *MockexecutorMockRecorder) ExecuteOptimistic(arg0, arg1, arg2, arg3, arg4 any) *executorExecuteOptimisticCall
ExecuteOptimistic indicates an expected call of ExecuteOptimistic.
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) AwaitLayer ¶
func (m *MocklayerClock) AwaitLayer(layerID types.LayerID) <-chan struct{}
AwaitLayer mocks base method.
func (*MocklayerClock) CurrentLayer ¶
func (m *MocklayerClock) CurrentLayer() types.LayerID
CurrentLayer mocks base method.
func (*MocklayerClock) EXPECT ¶
func (m *MocklayerClock) EXPECT() *MocklayerClockMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocklayerClockMockRecorder ¶
type MocklayerClockMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerClockMockRecorder is the mock recorder for MocklayerClock.
func (*MocklayerClockMockRecorder) AwaitLayer ¶
func (mr *MocklayerClockMockRecorder) AwaitLayer(layerID any) *layerClockAwaitLayerCall
AwaitLayer indicates an expected call of AwaitLayer.
func (*MocklayerClockMockRecorder) CurrentLayer ¶
func (mr *MocklayerClockMockRecorder) CurrentLayer() *layerClockCurrentLayerCall
CurrentLayer indicates an expected call of CurrentLayer.
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) CompleteHare ¶
func (m *MocklayerPatrol) CompleteHare(arg0 types.LayerID)
CompleteHare mocks base method.
func (*MocklayerPatrol) EXPECT ¶
func (m *MocklayerPatrol) EXPECT() *MocklayerPatrolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MocklayerPatrolMockRecorder ¶
type MocklayerPatrolMockRecorder struct {
// contains filtered or unexported fields
}
MocklayerPatrolMockRecorder is the mock recorder for MocklayerPatrol.
func (*MocklayerPatrolMockRecorder) CompleteHare ¶
func (mr *MocklayerPatrolMockRecorder) CompleteHare(arg0 any) *layerPatrolCompleteHareCall
CompleteHare indicates an expected call of CompleteHare.
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) AddBlockWithTXs ¶
AddBlockWithTXs mocks base method.
func (*MockmeshProvider) EXPECT ¶
func (m *MockmeshProvider) EXPECT() *MockmeshProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockmeshProvider) ProcessLayerPerHareOutput ¶
func (m *MockmeshProvider) ProcessLayerPerHareOutput(arg0 context.Context, arg1 types.LayerID, arg2 types.BlockID, arg3 bool) error
ProcessLayerPerHareOutput mocks base method.
func (*MockmeshProvider) ProcessedLayer ¶ added in v1.1.6
func (m *MockmeshProvider) ProcessedLayer() types.LayerID
ProcessedLayer mocks base method.
type MockmeshProviderMockRecorder ¶
type MockmeshProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockmeshProviderMockRecorder is the mock recorder for MockmeshProvider.
func (*MockmeshProviderMockRecorder) AddBlockWithTXs ¶
func (mr *MockmeshProviderMockRecorder) AddBlockWithTXs(arg0, arg1 any) *meshProviderAddBlockWithTXsCall
AddBlockWithTXs indicates an expected call of AddBlockWithTXs.
func (*MockmeshProviderMockRecorder) ProcessLayerPerHareOutput ¶
func (mr *MockmeshProviderMockRecorder) ProcessLayerPerHareOutput(arg0, arg1, arg2, arg3 any) *meshProviderProcessLayerPerHareOutputCall
ProcessLayerPerHareOutput indicates an expected call of ProcessLayerPerHareOutput.
func (*MockmeshProviderMockRecorder) ProcessedLayer ¶ added in v1.1.6
func (mr *MockmeshProviderMockRecorder) ProcessedLayer() *meshProviderProcessedLayerCall
ProcessedLayer indicates an expected call of ProcessedLayer.
type MocktortoiseProvider ¶ added in v1.1.5
type MocktortoiseProvider struct {
// contains filtered or unexported fields
}
MocktortoiseProvider is a mock of tortoiseProvider interface.
func NewMocktortoiseProvider ¶ added in v1.1.5
func NewMocktortoiseProvider(ctrl *gomock.Controller) *MocktortoiseProvider
NewMocktortoiseProvider creates a new mock instance.
func (*MocktortoiseProvider) EXPECT ¶ added in v1.1.5
func (m *MocktortoiseProvider) EXPECT() *MocktortoiseProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MocktortoiseProvider) GetMissingActiveSet ¶ added in v1.1.5
func (m *MocktortoiseProvider) GetMissingActiveSet(arg0 types.EpochID, arg1 []types.ATXID) []types.ATXID
GetMissingActiveSet mocks base method.
type MocktortoiseProviderMockRecorder ¶ added in v1.1.5
type MocktortoiseProviderMockRecorder struct {
// contains filtered or unexported fields
}
MocktortoiseProviderMockRecorder is the mock recorder for MocktortoiseProvider.
func (*MocktortoiseProviderMockRecorder) GetMissingActiveSet ¶ added in v1.1.5
func (mr *MocktortoiseProviderMockRecorder) GetMissingActiveSet(arg0, arg1 any) *tortoiseProviderGetMissingActiveSetCall
GetMissingActiveSet indicates an expected call of GetMissingActiveSet.