mocks

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockImportHandler

type BlockImportHandler struct {
	mock.Mock
}

BlockImportHandler is an autogenerated mock type for the BlockImportHandler type

func NewBlockImportHandler

func NewBlockImportHandler(t mockConstructorTestingTNewBlockImportHandler) *BlockImportHandler

NewBlockImportHandler creates a new instance of BlockImportHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*BlockImportHandler) HandleBlockProduced

func (_m *BlockImportHandler) HandleBlockProduced(block *types.Block, state *storage.TrieState) error

HandleBlockProduced provides a mock function with given fields: block, state

type MockNetwork

type MockNetwork struct {
	// contains filtered or unexported fields
}

MockNetwork is a mock of Network interface.

func NewMockNetwork

func NewMockNetwork(ctrl *gomock.Controller) *MockNetwork

NewMockNetwork creates a new mock instance.

func (*MockNetwork) EXPECT

func (m *MockNetwork) EXPECT() *MockNetworkMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockNetwork) GossipMessage

func (m *MockNetwork) GossipMessage(arg0 network.NotificationsMessage)

GossipMessage mocks base method.

func (*MockNetwork) IsSynced

func (m *MockNetwork) IsSynced() bool

IsSynced mocks base method.

func (*MockNetwork) ReportPeer

func (m *MockNetwork) ReportPeer(arg0 peerset.ReputationChange, arg1 peer.ID)

ReportPeer mocks base method.

type MockNetworkMockRecorder

type MockNetworkMockRecorder struct {
	// contains filtered or unexported fields
}

MockNetworkMockRecorder is the mock recorder for MockNetwork.

func (*MockNetworkMockRecorder) GossipMessage

func (mr *MockNetworkMockRecorder) GossipMessage(arg0 interface{}) *gomock.Call

GossipMessage indicates an expected call of GossipMessage.

func (*MockNetworkMockRecorder) IsSynced

func (mr *MockNetworkMockRecorder) IsSynced() *gomock.Call

IsSynced indicates an expected call of IsSynced.

func (*MockNetworkMockRecorder) ReportPeer

func (mr *MockNetworkMockRecorder) ReportPeer(arg0, arg1 interface{}) *gomock.Call

ReportPeer indicates an expected call of ReportPeer.

Jump to

Keyboard shortcuts

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