mocks

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: BSD-3-Clause Imports: 6 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) Bootstrapped

func (_m *ChainVM) Bootstrapped() error

Bootstrapped provides a mock function with given fields:

func (*ChainVM) Bootstrapping

func (_m *ChainVM) Bootstrapping() error

Bootstrapping provides a mock function with given fields:

func (*ChainVM) BuildBlock

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

BuildBlock provides a mock function with given fields:

func (*ChainVM) CreateHandlers

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

CreateHandlers provides a mock function with given fields:

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

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

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

func (_m *ChainVM) Shutdown() error

Shutdown 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