mocks

package
v0.3.11-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: MIT Imports: 5 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 log.Log, arg2 types.LayerID, arg3 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, arg3 interface{}) *gomock.Call

CertifyIfEligible indicates an expected call of CertifyIfEligible.

func (*MockcertifierMockRecorder) RegisterForCert

func (mr *MockcertifierMockRecorder) RegisterForCert(arg0, arg1, arg2 interface{}) *gomock.Call

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 interface{}) *gomock.Call

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 interface{}) *gomock.Call

AwaitLayer indicates an expected call of AwaitLayer.

func (*MocklayerClockMockRecorder) CurrentLayer

func (mr *MocklayerClockMockRecorder) CurrentLayer() *gomock.Call

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 interface{}) *gomock.Call

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.

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 interface{}) *gomock.Call

AddBlockWithTXs indicates an expected call of AddBlockWithTXs.

func (*MockmeshProviderMockRecorder) ProcessLayerPerHareOutput

func (mr *MockmeshProviderMockRecorder) ProcessLayerPerHareOutput(arg0, arg1, arg2, arg3 interface{}) *gomock.Call

ProcessLayerPerHareOutput indicates an expected call of ProcessLayerPerHareOutput.

Jump to

Keyboard shortcuts

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