mocks

package
v0.2.5-beta.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: MIT Imports: 7 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 MockFetcher

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

MockFetcher is a mock of Fetcher interface.

func NewMockFetcher

func NewMockFetcher(ctrl *gomock.Controller) *MockFetcher

NewMockFetcher creates a new mock instance.

func (*MockFetcher) AddDB

func (m *MockFetcher) AddDB(hint fetch.Hint, db database.Getter)

AddDB mocks base method.

func (*MockFetcher) EXPECT

func (m *MockFetcher) EXPECT() *MockFetcherMockRecorder

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

func (*MockFetcher) GetHash

func (m *MockFetcher) GetHash(hash types.Hash32, h fetch.Hint, validateHash bool) chan fetch.HashDataPromiseResult

GetHash mocks base method.

func (*MockFetcher) GetHashes

func (m *MockFetcher) GetHashes(hash []types.Hash32, hint fetch.Hint, validateHash bool) map[types.Hash32]chan fetch.HashDataPromiseResult

GetHashes mocks base method.

func (*MockFetcher) Start

func (m *MockFetcher) Start()

Start mocks base method.

func (*MockFetcher) Stop

func (m *MockFetcher) Stop()

Stop mocks base method.

type MockFetcherMockRecorder

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

MockFetcherMockRecorder is the mock recorder for MockFetcher.

func (*MockFetcherMockRecorder) AddDB

func (mr *MockFetcherMockRecorder) AddDB(hint, db interface{}) *gomock.Call

AddDB indicates an expected call of AddDB.

func (*MockFetcherMockRecorder) GetHash

func (mr *MockFetcherMockRecorder) GetHash(hash, h, validateHash interface{}) *gomock.Call

GetHash indicates an expected call of GetHash.

func (*MockFetcherMockRecorder) GetHashes

func (mr *MockFetcherMockRecorder) GetHashes(hash, hint, validateHash interface{}) *gomock.Call

GetHashes indicates an expected call of GetHashes.

func (*MockFetcherMockRecorder) Start

func (mr *MockFetcherMockRecorder) Start() *gomock.Call

Start indicates an expected call of Start.

func (*MockFetcherMockRecorder) Stop

func (mr *MockFetcherMockRecorder) Stop() *gomock.Call

Stop indicates an expected call of Stop.

type MocknetworkInterface

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

MocknetworkInterface is a mock of networkInterface interface.

func NewMocknetworkInterface

func NewMocknetworkInterface(ctrl *gomock.Controller) *MocknetworkInterface

NewMocknetworkInterface creates a new mock instance.

func (*MocknetworkInterface) Close

func (m *MocknetworkInterface) Close() error

Close mocks base method.

func (*MocknetworkInterface) EXPECT

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

func (*MocknetworkInterface) GetPeers

func (m *MocknetworkInterface) GetPeers() []p2p.Peer

GetPeers mocks base method.

func (*MocknetworkInterface) PeerCount

func (m *MocknetworkInterface) PeerCount() uint64

PeerCount mocks base method.

func (*MocknetworkInterface) Request

func (m *MocknetworkInterface) Request(arg0 context.Context, arg1 p2p.Peer, arg2 []byte, arg3 func([]byte), arg4 func(error)) error

Request mocks base method.

type MocknetworkInterfaceMockRecorder

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

MocknetworkInterfaceMockRecorder is the mock recorder for MocknetworkInterface.

func (*MocknetworkInterfaceMockRecorder) Close

Close indicates an expected call of Close.

func (*MocknetworkInterfaceMockRecorder) GetPeers

GetPeers indicates an expected call of GetPeers.

func (*MocknetworkInterfaceMockRecorder) PeerCount

func (mr *MocknetworkInterfaceMockRecorder) PeerCount() *gomock.Call

PeerCount indicates an expected call of PeerCount.

func (*MocknetworkInterfaceMockRecorder) Request

func (mr *MocknetworkInterfaceMockRecorder) Request(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call

Request indicates an expected call of Request.

Jump to

Keyboard shortcuts

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