mocks

package
v1.3.0-activeset-test2... Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 4 Imported by: 0

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

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 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

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

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

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

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 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

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.

Jump to

Keyboard shortcuts

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