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: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	mock.Mock
}

Engine is an autogenerated mock type for the Engine type

func (*Engine) Accepted

func (_m *Engine) Accepted(validatorID ids.ShortID, requestID uint32, containerIDs []ids.ID) error

Accepted provides a mock function with given fields: validatorID, requestID, containerIDs

func (*Engine) AcceptedFrontier

func (_m *Engine) AcceptedFrontier(validatorID ids.ShortID, requestID uint32, containerIDs []ids.ID) error

AcceptedFrontier provides a mock function with given fields: validatorID, requestID, containerIDs

func (*Engine) Ancestors

func (_m *Engine) Ancestors(validatorID ids.ShortID, requestID uint32, containers [][]byte) error

Ancestors provides a mock function with given fields: validatorID, requestID, containers

func (*Engine) AppGossip

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

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

func (*Engine) AppRequest

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

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

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

func (*Engine) AppResponse

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

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

func (*Engine) Chits

func (_m *Engine) Chits(validatorID ids.ShortID, requestID uint32, containerIDs []ids.ID) error

Chits provides a mock function with given fields: validatorID, requestID, containerIDs

func (*Engine) Connected

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

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

func (*Engine) Context

func (_m *Engine) Context() *snow.ConsensusContext

Context provides a mock function with given fields:

func (*Engine) Disconnected

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

Disconnected provides a mock function with given fields: id

func (*Engine) Get

func (_m *Engine) Get(validatorID ids.ShortID, requestID uint32, containerID ids.ID) error

Get provides a mock function with given fields: validatorID, requestID, containerID

func (*Engine) GetAccepted

func (_m *Engine) GetAccepted(validatorID ids.ShortID, requestID uint32, containerIDs []ids.ID) error

GetAccepted provides a mock function with given fields: validatorID, requestID, containerIDs

func (*Engine) GetAcceptedFailed

func (_m *Engine) GetAcceptedFailed(validatorID ids.ShortID, requestID uint32) error

GetAcceptedFailed provides a mock function with given fields: validatorID, requestID

func (*Engine) GetAcceptedFrontier

func (_m *Engine) GetAcceptedFrontier(validatorID ids.ShortID, requestID uint32) error

GetAcceptedFrontier provides a mock function with given fields: validatorID, requestID

func (*Engine) GetAcceptedFrontierFailed

func (_m *Engine) GetAcceptedFrontierFailed(validatorID ids.ShortID, requestID uint32) error

GetAcceptedFrontierFailed provides a mock function with given fields: validatorID, requestID

func (*Engine) GetAncestors

func (_m *Engine) GetAncestors(validatorID ids.ShortID, requestID uint32, containerID ids.ID) error

GetAncestors provides a mock function with given fields: validatorID, requestID, containerID

func (*Engine) GetAncestorsFailed

func (_m *Engine) GetAncestorsFailed(validatorID ids.ShortID, requestID uint32) error

GetAncestorsFailed provides a mock function with given fields: validatorID, requestID

func (*Engine) GetFailed

func (_m *Engine) GetFailed(validatorID ids.ShortID, requestID uint32) error

GetFailed provides a mock function with given fields: validatorID, requestID

func (*Engine) GetVM

func (_m *Engine) GetVM() common.VM

GetVM provides a mock function with given fields:

func (*Engine) GetVtx

func (_m *Engine) GetVtx(vtxID ids.ID) (consensusavalanche.Vertex, error)

GetVtx provides a mock function with given fields: vtxID

func (*Engine) Gossip

func (_m *Engine) Gossip() error

Gossip provides a mock function with given fields:

func (*Engine) Halt

func (_m *Engine) Halt()

Halt provides a mock function with given fields:

func (*Engine) HealthCheck

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

HealthCheck provides a mock function with given fields:

func (*Engine) Notify

func (_m *Engine) Notify(_a0 common.Message) error

Notify provides a mock function with given fields: _a0

func (*Engine) PullQuery

func (_m *Engine) PullQuery(validatorID ids.ShortID, requestID uint32, containerID ids.ID) error

PullQuery provides a mock function with given fields: validatorID, requestID, containerID

func (*Engine) PushQuery

func (_m *Engine) PushQuery(validatorID ids.ShortID, requestID uint32, container []byte) error

PushQuery provides a mock function with given fields: validatorID, requestID, container

func (*Engine) Put

func (_m *Engine) Put(validatorID ids.ShortID, requestID uint32, container []byte) error

Put provides a mock function with given fields: validatorID, requestID, container

func (*Engine) QueryFailed

func (_m *Engine) QueryFailed(validatorID ids.ShortID, requestID uint32) error

QueryFailed provides a mock function with given fields: validatorID, requestID

func (*Engine) Shutdown

func (_m *Engine) Shutdown() error

Shutdown provides a mock function with given fields:

func (*Engine) Start

func (_m *Engine) Start(startReqID uint32) error

Start provides a mock function with given fields: startReqID

func (*Engine) Timeout

func (_m *Engine) Timeout() error

Timeout 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