mocks

package
v1.5.8 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MIT Imports: 4 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 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

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 MockcertifierCertifyIfEligibleCall added in v1.4.0

type MockcertifierCertifyIfEligibleCall struct {
	*gomock.Call
}

MockcertifierCertifyIfEligibleCall wrap *gomock.Call

func (*MockcertifierCertifyIfEligibleCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockcertifierCertifyIfEligibleCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockcertifierCertifyIfEligibleCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

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) *MockcertifierCertifyIfEligibleCall

CertifyIfEligible indicates an expected call of CertifyIfEligible.

func (*MockcertifierMockRecorder) RegisterForCert

func (mr *MockcertifierMockRecorder) RegisterForCert(arg0, arg1, arg2 any) *MockcertifierRegisterForCertCall

RegisterForCert indicates an expected call of RegisterForCert.

type MockcertifierRegisterForCertCall added in v1.4.0

type MockcertifierRegisterForCertCall struct {
	*gomock.Call
}

MockcertifierRegisterForCertCall wrap *gomock.Call

func (*MockcertifierRegisterForCertCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockcertifierRegisterForCertCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockcertifierRegisterForCertCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

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

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 MockexecutorExecuteOptimisticCall added in v1.4.0

type MockexecutorExecuteOptimisticCall struct {
	*gomock.Call
}

MockexecutorExecuteOptimisticCall wrap *gomock.Call

func (*MockexecutorExecuteOptimisticCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockexecutorExecuteOptimisticCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockexecutorExecuteOptimisticCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

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) *MockexecutorExecuteOptimisticCall

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

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

type MocklayerClockAwaitLayerCall added in v1.4.0

type MocklayerClockAwaitLayerCall struct {
	*gomock.Call
}

MocklayerClockAwaitLayerCall wrap *gomock.Call

func (*MocklayerClockAwaitLayerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocklayerClockAwaitLayerCall) DoAndReturn added in v1.4.0

func (c *MocklayerClockAwaitLayerCall) DoAndReturn(f func(types.LayerID) <-chan struct{}) *MocklayerClockAwaitLayerCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerClockAwaitLayerCall) Return added in v1.4.0

func (c *MocklayerClockAwaitLayerCall) Return(arg0 <-chan struct{}) *MocklayerClockAwaitLayerCall

Return rewrite *gomock.Call.Return

type MocklayerClockCurrentLayerCall added in v1.4.0

type MocklayerClockCurrentLayerCall struct {
	*gomock.Call
}

MocklayerClockCurrentLayerCall wrap *gomock.Call

func (*MocklayerClockCurrentLayerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocklayerClockCurrentLayerCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerClockCurrentLayerCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerClockMockRecorder

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

MocklayerClockMockRecorder is the mock recorder for MocklayerClock.

func (*MocklayerClockMockRecorder) AwaitLayer

AwaitLayer indicates an expected call of AwaitLayer.

func (*MocklayerClockMockRecorder) CurrentLayer

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

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

type MocklayerPatrolCompleteHareCall added in v1.4.0

type MocklayerPatrolCompleteHareCall struct {
	*gomock.Call
}

MocklayerPatrolCompleteHareCall wrap *gomock.Call

func (*MocklayerPatrolCompleteHareCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocklayerPatrolCompleteHareCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocklayerPatrolCompleteHareCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MocklayerPatrolMockRecorder

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

MocklayerPatrolMockRecorder is the mock recorder for MocklayerPatrol.

func (*MocklayerPatrolMockRecorder) CompleteHare

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

func (m *MockmeshProvider) AddBlockWithTXs(arg0 context.Context, arg1 *types.Block) error

AddBlockWithTXs mocks base method.

func (*MockmeshProvider) EXPECT

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 MockmeshProviderAddBlockWithTXsCall added in v1.4.0

type MockmeshProviderAddBlockWithTXsCall struct {
	*gomock.Call
}

MockmeshProviderAddBlockWithTXsCall wrap *gomock.Call

func (*MockmeshProviderAddBlockWithTXsCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockmeshProviderAddBlockWithTXsCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshProviderAddBlockWithTXsCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

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) *MockmeshProviderAddBlockWithTXsCall

AddBlockWithTXs indicates an expected call of AddBlockWithTXs.

func (*MockmeshProviderMockRecorder) ProcessLayerPerHareOutput

func (mr *MockmeshProviderMockRecorder) ProcessLayerPerHareOutput(arg0, arg1, arg2, arg3 any) *MockmeshProviderProcessLayerPerHareOutputCall

ProcessLayerPerHareOutput indicates an expected call of ProcessLayerPerHareOutput.

func (*MockmeshProviderMockRecorder) ProcessedLayer added in v1.1.6

ProcessedLayer indicates an expected call of ProcessedLayer.

type MockmeshProviderProcessLayerPerHareOutputCall added in v1.4.0

type MockmeshProviderProcessLayerPerHareOutputCall struct {
	*gomock.Call
}

MockmeshProviderProcessLayerPerHareOutputCall wrap *gomock.Call

func (*MockmeshProviderProcessLayerPerHareOutputCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockmeshProviderProcessLayerPerHareOutputCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshProviderProcessLayerPerHareOutputCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockmeshProviderProcessedLayerCall added in v1.4.0

type MockmeshProviderProcessedLayerCall struct {
	*gomock.Call
}

MockmeshProviderProcessedLayerCall wrap *gomock.Call

func (*MockmeshProviderProcessedLayerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockmeshProviderProcessedLayerCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockmeshProviderProcessedLayerCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

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

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 MocktortoiseProviderGetMissingActiveSetCall added in v1.4.0

type MocktortoiseProviderGetMissingActiveSetCall struct {
	*gomock.Call
}

MocktortoiseProviderGetMissingActiveSetCall wrap *gomock.Call

func (*MocktortoiseProviderGetMissingActiveSetCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MocktortoiseProviderGetMissingActiveSetCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MocktortoiseProviderGetMissingActiveSetCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

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

GetMissingActiveSet indicates an expected call of GetMissingActiveSet.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL