mocks

package
v0.0.0-...-4f0ab6e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockedHeartbeatEnabler

type MockedHeartbeatEnabler struct {
	mock.Mock
}

MockedHeartbeatEnabler is an autogenerated mock type for the MockedHeartbeatEnabler type

func (*MockedHeartbeatEnabler) Start

func (_m *MockedHeartbeatEnabler) Start()

Start provides a mock function with given fields:

type MockedReshardHandler

type MockedReshardHandler struct {
	mock.Mock
}

MockedReshardHandler is an autogenerated mock type for the MockedReshardHandler type

func (*MockedReshardHandler) GetEnableShards

func (_m *MockedReshardHandler) GetEnableShards() []shard.Index

GetEnableShards provides a mock function with given fields:

func (*MockedReshardHandler) HandleConfirmationMessage

func (_m *MockedReshardHandler) HandleConfirmationMessage(msg *wire.MsgBlockConfirmation)

HandleConfirmationMessage provides a mock function with given fields: msg

func (*MockedReshardHandler) StartEnabledShardControllers

func (_m *MockedReshardHandler) StartEnabledShardControllers()

StartEnabledShardControllers provides a mock function with given fields:

type MockedShardController

type MockedShardController struct {
	mock.Mock
}

MockedShardController is an autogenerated mock type for the MockedShardController type

func (*MockedShardController) HandleMsg

func (_m *MockedShardController) HandleMsg(p peer.Reply, msg wire.Message)

HandleMsg provides a mock function with given fields: p, msg

func (*MockedShardController) HandleRPCReq

func (_m *MockedShardController) HandleRPCReq(req *message.RPCReq) *message.RPCResp

HandleRPCReq provides a mock function with given fields: req

func (*MockedShardController) IsEnabled

func (_m *MockedShardController) IsEnabled() bool

IsEnabled provides a mock function with given fields:

func (*MockedShardController) NotifyNewPeerAdded

func (_m *MockedShardController) NotifyNewPeerAdded(cp *connection.ConnPeer, t config.NodeType)

NotifyNewPeerAdded provides a mock function with given fields: cp, t

func (*MockedShardController) NotifyPeerDone

func (_m *MockedShardController) NotifyPeerDone(cp *connection.ConnPeer, t config.NodeType)

NotifyPeerDone provides a mock function with given fields: cp, t

func (*MockedShardController) ShardIndex

func (_m *MockedShardController) ShardIndex() shard.Index

ShardIndex provides a mock function with given fields:

type MockedShardRouter

type MockedShardRouter struct {
	mock.Mock
}

MockedShardRouter is an autogenerated mock type for the MockedShardRouter type

func (*MockedShardRouter) GetAllShardControllers

func (_m *MockedShardRouter) GetAllShardControllers() []icontroller.IShardController

GetAllShardControllers provides a mock function with given fields:

func (*MockedShardRouter) GetShardController

func (_m *MockedShardRouter) GetShardController(shardIndex shard.Index) icontroller.IShardController

GetShardController provides a mock function with given fields: shardIndex

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳