mocks

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChainVM

type ChainVM struct {
	mock.Mock
}

ChainVM is an autogenerated mock type for the ChainVM type

func (*ChainVM) AppGossip

func (_m *ChainVM) AppGossip(nodeID ids.ShortID, msg []byte) error

AppGossip provides a mock function with given fields: nodeID, msg

func (*ChainVM) AppRequest

func (_m *ChainVM) AppRequest(nodeID ids.ShortID, requestID uint32, deadline time.Time, request []byte) error

AppRequest provides a mock function with given fields: nodeID, requestID, deadline, request

func (*ChainVM) AppRequestFailed

func (_m *ChainVM) AppRequestFailed(nodeID ids.ShortID, requestID uint32) error

AppRequestFailed provides a mock function with given fields: nodeID, requestID

func (*ChainVM) AppResponse

func (_m *ChainVM) AppResponse(nodeID ids.ShortID, requestID uint32, response []byte) error

AppResponse provides a mock function with given fields: nodeID, requestID, response

func (*ChainVM) BuildBlock

func (_m *ChainVM) BuildBlock() (snowman.Block, error)

BuildBlock provides a mock function with given fields:

func (*ChainVM) Connected

func (_m *ChainVM) Connected(id ids.ShortID, nodeVersion version.Application) error

Connected provides a mock function with given fields: id, nodeVersion

func (*ChainVM) CreateHandlers

func (_m *ChainVM) CreateHandlers() (map[string]*common.HTTPHandler, error)

CreateHandlers provides a mock function with given fields:

func (*ChainVM) CreateStaticHandlers

func (_m *ChainVM) CreateStaticHandlers() (map[string]*common.HTTPHandler, error)

CreateStaticHandlers provides a mock function with given fields:

func (*ChainVM) Disconnected

func (_m *ChainVM) Disconnected(id ids.ShortID) error

Disconnected provides a mock function with given fields: id

func (*ChainVM) GetBlock

func (_m *ChainVM) GetBlock(_a0 ids.ID) (snowman.Block, error)

GetBlock provides a mock function with given fields: _a0

func (*ChainVM) HealthCheck

func (_m *ChainVM) HealthCheck() (interface{}, error)

HealthCheck provides a mock function with given fields:

func (*ChainVM) Initialize

func (_m *ChainVM) Initialize(ctx *snow.Context, dbManager manager.Manager, genesisBytes []byte, upgradeBytes []byte, configBytes []byte, toEngine chan<- common.Message, fxs []*common.Fx, appSender common.AppSender) error

Initialize provides a mock function with given fields: ctx, dbManager, genesisBytes, upgradeBytes, configBytes, toEngine, fxs, appSender

func (*ChainVM) LastAccepted

func (_m *ChainVM) LastAccepted() (ids.ID, error)

LastAccepted provides a mock function with given fields:

func (*ChainVM) ParseBlock

func (_m *ChainVM) ParseBlock(_a0 []byte) (snowman.Block, error)

ParseBlock provides a mock function with given fields: _a0

func (*ChainVM) SetPreference

func (_m *ChainVM) SetPreference(_a0 ids.ID) error

SetPreference provides a mock function with given fields: _a0

func (*ChainVM) SetState

func (_m *ChainVM) SetState(state snow.State) error

SetState provides a mock function with given fields: state

func (*ChainVM) Shutdown

func (_m *ChainVM) Shutdown() error

Shutdown provides a mock function with given fields:

func (*ChainVM) Version

func (_m *ChainVM) Version() (string, error)

Version provides a mock function with given fields:

Jump to

Keyboard shortcuts

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