mocks

package
v1.7.14-rc.1 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 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 DAGVM

type DAGVM struct {
	mock.Mock
}

DAGVM is an autogenerated mock type for the DAGVM type

func (*DAGVM) AppGossip added in v1.7.4

func (_m *DAGVM) AppGossip(nodeID ids.NodeID, msg []byte) error

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

func (*DAGVM) AppRequest added in v1.7.4

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

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

func (*DAGVM) AppRequestFailed added in v1.7.4

func (_m *DAGVM) AppRequestFailed(nodeID ids.NodeID, requestID uint32) error

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

func (*DAGVM) AppResponse added in v1.7.4

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

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

func (*DAGVM) Connected added in v1.7.4

func (_m *DAGVM) Connected(id ids.NodeID, nodeVersion version.Application) error

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

func (*DAGVM) CreateHandlers

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

CreateHandlers provides a mock function with given fields:

func (*DAGVM) CreateStaticHandlers added in v1.7.4

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

CreateStaticHandlers provides a mock function with given fields:

func (*DAGVM) Disconnected added in v1.7.4

func (_m *DAGVM) Disconnected(id ids.NodeID) error

Disconnected provides a mock function with given fields: id

func (*DAGVM) GetTx

func (_m *DAGVM) GetTx(_a0 ids.ID) (snowstorm.Tx, error)

GetTx provides a mock function with given fields: _a0

func (*DAGVM) HealthCheck

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

HealthCheck provides a mock function with given fields:

func (*DAGVM) Initialize

func (_m *DAGVM) 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 (*DAGVM) ParseTx

func (_m *DAGVM) ParseTx(tx []byte) (snowstorm.Tx, error)

ParseTx provides a mock function with given fields: tx

func (*DAGVM) PendingTxs

func (_m *DAGVM) PendingTxs() []snowstorm.Tx

PendingTxs provides a mock function with given fields:

func (*DAGVM) SetState added in v1.7.5

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

SetState provides a mock function with given fields: state

func (*DAGVM) Shutdown

func (_m *DAGVM) Shutdown() error

Shutdown provides a mock function with given fields:

func (*DAGVM) Version added in v1.7.4

func (_m *DAGVM) 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