vertexmock

package
v1.12.3-warp-verify4 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Overview

Package vertexmock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinearizableVM

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

LinearizableVM is a mock of LinearizableVM interface.

func NewLinearizableVM

func NewLinearizableVM(ctrl *gomock.Controller) *LinearizableVM

NewLinearizableVM creates a new mock instance.

func (*LinearizableVM) AppGossip

func (m *LinearizableVM) AppGossip(ctx context.Context, nodeID ids.NodeID, msg []byte) error

AppGossip mocks base method.

func (*LinearizableVM) AppRequest

func (m *LinearizableVM) AppRequest(ctx context.Context, nodeID ids.NodeID, requestID uint32, deadline time.Time, request []byte) error

AppRequest mocks base method.

func (*LinearizableVM) AppRequestFailed

func (m *LinearizableVM) AppRequestFailed(ctx context.Context, nodeID ids.NodeID, requestID uint32, appErr *common.AppError) error

AppRequestFailed mocks base method.

func (*LinearizableVM) AppResponse

func (m *LinearizableVM) AppResponse(ctx context.Context, nodeID ids.NodeID, requestID uint32, response []byte) error

AppResponse mocks base method.

func (*LinearizableVM) BuildBlock

func (m *LinearizableVM) BuildBlock(arg0 context.Context) (snowman.Block, error)

BuildBlock mocks base method.

func (*LinearizableVM) Connected

func (m *LinearizableVM) Connected(ctx context.Context, nodeID ids.NodeID, nodeVersion *version.Application) error

Connected mocks base method.

func (*LinearizableVM) CreateHandlers

func (m *LinearizableVM) CreateHandlers(arg0 context.Context) (map[string]http.Handler, error)

CreateHandlers mocks base method.

func (*LinearizableVM) Disconnected

func (m *LinearizableVM) Disconnected(ctx context.Context, nodeID ids.NodeID) error

Disconnected mocks base method.

func (*LinearizableVM) EXPECT

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

func (*LinearizableVM) GetBlock

func (m *LinearizableVM) GetBlock(ctx context.Context, blkID ids.ID) (snowman.Block, error)

GetBlock mocks base method.

func (*LinearizableVM) GetBlockIDAtHeight

func (m *LinearizableVM) GetBlockIDAtHeight(ctx context.Context, height uint64) (ids.ID, error)

GetBlockIDAtHeight mocks base method.

func (*LinearizableVM) HealthCheck

func (m *LinearizableVM) HealthCheck(arg0 context.Context) (any, error)

HealthCheck mocks base method.

func (*LinearizableVM) Initialize

func (m *LinearizableVM) Initialize(ctx context.Context, chainCtx *snow.Context, db database.Database, genesisBytes, upgradeBytes, configBytes []byte, toEngine chan<- common.Message, fxs []*common.Fx, appSender common.AppSender) error

Initialize mocks base method.

func (*LinearizableVM) LastAccepted

func (m *LinearizableVM) LastAccepted(arg0 context.Context) (ids.ID, error)

LastAccepted mocks base method.

func (*LinearizableVM) Linearize

func (m *LinearizableVM) Linearize(ctx context.Context, stopVertexID ids.ID) error

Linearize mocks base method.

func (*LinearizableVM) ParseBlock

func (m *LinearizableVM) ParseBlock(ctx context.Context, blockBytes []byte) (snowman.Block, error)

ParseBlock mocks base method.

func (*LinearizableVM) ParseTx

func (m *LinearizableVM) ParseTx(ctx context.Context, txBytes []byte) (snowstorm.Tx, error)

ParseTx mocks base method.

func (*LinearizableVM) SetPreference

func (m *LinearizableVM) SetPreference(ctx context.Context, blkID ids.ID) error

SetPreference mocks base method.

func (*LinearizableVM) SetState

func (m *LinearizableVM) SetState(ctx context.Context, state snow.State) error

SetState mocks base method.

func (*LinearizableVM) Shutdown

func (m *LinearizableVM) Shutdown(arg0 context.Context) error

Shutdown mocks base method.

func (*LinearizableVM) Version

func (m *LinearizableVM) Version(arg0 context.Context) (string, error)

Version mocks base method.

type LinearizableVMMockRecorder

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

LinearizableVMMockRecorder is the mock recorder for LinearizableVM.

func (*LinearizableVMMockRecorder) AppGossip

func (mr *LinearizableVMMockRecorder) AppGossip(ctx, nodeID, msg any) *gomock.Call

AppGossip indicates an expected call of AppGossip.

func (*LinearizableVMMockRecorder) AppRequest

func (mr *LinearizableVMMockRecorder) AppRequest(ctx, nodeID, requestID, deadline, request any) *gomock.Call

AppRequest indicates an expected call of AppRequest.

func (*LinearizableVMMockRecorder) AppRequestFailed

func (mr *LinearizableVMMockRecorder) AppRequestFailed(ctx, nodeID, requestID, appErr any) *gomock.Call

AppRequestFailed indicates an expected call of AppRequestFailed.

func (*LinearizableVMMockRecorder) AppResponse

func (mr *LinearizableVMMockRecorder) AppResponse(ctx, nodeID, requestID, response any) *gomock.Call

AppResponse indicates an expected call of AppResponse.

func (*LinearizableVMMockRecorder) BuildBlock

func (mr *LinearizableVMMockRecorder) BuildBlock(arg0 any) *gomock.Call

BuildBlock indicates an expected call of BuildBlock.

func (*LinearizableVMMockRecorder) Connected

func (mr *LinearizableVMMockRecorder) Connected(ctx, nodeID, nodeVersion any) *gomock.Call

Connected indicates an expected call of Connected.

func (*LinearizableVMMockRecorder) CreateHandlers

func (mr *LinearizableVMMockRecorder) CreateHandlers(arg0 any) *gomock.Call

CreateHandlers indicates an expected call of CreateHandlers.

func (*LinearizableVMMockRecorder) Disconnected

func (mr *LinearizableVMMockRecorder) Disconnected(ctx, nodeID any) *gomock.Call

Disconnected indicates an expected call of Disconnected.

func (*LinearizableVMMockRecorder) GetBlock

func (mr *LinearizableVMMockRecorder) GetBlock(ctx, blkID any) *gomock.Call

GetBlock indicates an expected call of GetBlock.

func (*LinearizableVMMockRecorder) GetBlockIDAtHeight

func (mr *LinearizableVMMockRecorder) GetBlockIDAtHeight(ctx, height any) *gomock.Call

GetBlockIDAtHeight indicates an expected call of GetBlockIDAtHeight.

func (*LinearizableVMMockRecorder) HealthCheck

func (mr *LinearizableVMMockRecorder) HealthCheck(arg0 any) *gomock.Call

HealthCheck indicates an expected call of HealthCheck.

func (*LinearizableVMMockRecorder) Initialize

func (mr *LinearizableVMMockRecorder) Initialize(ctx, chainCtx, db, genesisBytes, upgradeBytes, configBytes, toEngine, fxs, appSender any) *gomock.Call

Initialize indicates an expected call of Initialize.

func (*LinearizableVMMockRecorder) LastAccepted

func (mr *LinearizableVMMockRecorder) LastAccepted(arg0 any) *gomock.Call

LastAccepted indicates an expected call of LastAccepted.

func (*LinearizableVMMockRecorder) Linearize

func (mr *LinearizableVMMockRecorder) Linearize(ctx, stopVertexID any) *gomock.Call

Linearize indicates an expected call of Linearize.

func (*LinearizableVMMockRecorder) ParseBlock

func (mr *LinearizableVMMockRecorder) ParseBlock(ctx, blockBytes any) *gomock.Call

ParseBlock indicates an expected call of ParseBlock.

func (*LinearizableVMMockRecorder) ParseTx

func (mr *LinearizableVMMockRecorder) ParseTx(ctx, txBytes any) *gomock.Call

ParseTx indicates an expected call of ParseTx.

func (*LinearizableVMMockRecorder) SetPreference

func (mr *LinearizableVMMockRecorder) SetPreference(ctx, blkID any) *gomock.Call

SetPreference indicates an expected call of SetPreference.

func (*LinearizableVMMockRecorder) SetState

func (mr *LinearizableVMMockRecorder) SetState(ctx, state any) *gomock.Call

SetState indicates an expected call of SetState.

func (*LinearizableVMMockRecorder) Shutdown

func (mr *LinearizableVMMockRecorder) Shutdown(arg0 any) *gomock.Call

Shutdown indicates an expected call of Shutdown.

func (*LinearizableVMMockRecorder) Version

func (mr *LinearizableVMMockRecorder) Version(arg0 any) *gomock.Call

Version indicates an expected call of Version.

Jump to

Keyboard shortcuts

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