mocks

package
v1.2.12 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Code generated by MockGen. DO NOT EDIT. Source: ./proposal_builder.go

Generated by this command:

mockgen -typed -package=mocks -destination=./mocks/mocks.go -source=./proposal_builder.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 MockconservativeState

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

MockconservativeState is a mock of conservativeState interface.

func NewMockconservativeState

func NewMockconservativeState(ctrl *gomock.Controller) *MockconservativeState

NewMockconservativeState creates a new mock instance.

func (*MockconservativeState) EXPECT

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

func (*MockconservativeState) SelectProposalTXs

func (m *MockconservativeState) SelectProposalTXs(arg0 types.LayerID, arg1 int) []types.TransactionID

SelectProposalTXs mocks base method.

type MockconservativeStateMockRecorder

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

MockconservativeStateMockRecorder is the mock recorder for MockconservativeState.

func (*MockconservativeStateMockRecorder) SelectProposalTXs

func (mr *MockconservativeStateMockRecorder) SelectProposalTXs(arg0, arg1 any) *conservativeStateSelectProposalTXsCall

SelectProposalTXs indicates an expected call of SelectProposalTXs.

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.

func (*MocklayerClock) LayerToTime

func (m *MocklayerClock) LayerToTime(arg0 types.LayerID) time.Time

LayerToTime mocks base method.

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.

func (*MocklayerClockMockRecorder) LayerToTime

func (mr *MocklayerClockMockRecorder) LayerToTime(arg0 any) *layerClockLayerToTimeCall

LayerToTime indicates an expected call of LayerToTime.

type Mockmesh

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

Mockmesh is a mock of mesh interface.

func NewMockmesh

func NewMockmesh(ctrl *gomock.Controller) *Mockmesh

NewMockmesh creates a new mock instance.

func (*Mockmesh) EXPECT

func (m *Mockmesh) EXPECT() *MockmeshMockRecorder

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

func (*Mockmesh) GetMalfeasanceProof

func (m *Mockmesh) GetMalfeasanceProof(nodeID types.NodeID) (*types.MalfeasanceProof, error)

GetMalfeasanceProof mocks base method.

type MockmeshMockRecorder

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

MockmeshMockRecorder is the mock recorder for Mockmesh.

func (*MockmeshMockRecorder) GetMalfeasanceProof

func (mr *MockmeshMockRecorder) GetMalfeasanceProof(nodeID any) *meshGetMalfeasanceProofCall

GetMalfeasanceProof indicates an expected call of GetMalfeasanceProof.

type MockvotesEncoder

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

MockvotesEncoder is a mock of votesEncoder interface.

func NewMockvotesEncoder

func NewMockvotesEncoder(ctrl *gomock.Controller) *MockvotesEncoder

NewMockvotesEncoder creates a new mock instance.

func (*MockvotesEncoder) EXPECT

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

func (*MockvotesEncoder) EncodeVotes

func (m *MockvotesEncoder) EncodeVotes(arg0 context.Context, arg1 ...tortoise.EncodeVotesOpts) (*types.Opinion, error)

EncodeVotes mocks base method.

func (*MockvotesEncoder) LatestComplete

func (m *MockvotesEncoder) LatestComplete() types.LayerID

LatestComplete mocks base method.

func (*MockvotesEncoder) TallyVotes

func (m *MockvotesEncoder) TallyVotes(arg0 context.Context, arg1 types.LayerID)

TallyVotes mocks base method.

type MockvotesEncoderMockRecorder

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

MockvotesEncoderMockRecorder is the mock recorder for MockvotesEncoder.

func (*MockvotesEncoderMockRecorder) EncodeVotes

func (mr *MockvotesEncoderMockRecorder) EncodeVotes(arg0 any, arg1 ...any) *votesEncoderEncodeVotesCall

EncodeVotes indicates an expected call of EncodeVotes.

func (*MockvotesEncoderMockRecorder) LatestComplete

func (mr *MockvotesEncoderMockRecorder) LatestComplete() *votesEncoderLatestCompleteCall

LatestComplete indicates an expected call of LatestComplete.

func (*MockvotesEncoderMockRecorder) TallyVotes

func (mr *MockvotesEncoderMockRecorder) TallyVotes(arg0, arg1 any) *votesEncoderTallyVotesCall

TallyVotes indicates an expected call of TallyVotes.

Jump to

Keyboard shortcuts

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