mocks

package
v0.2.16-beta.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 6 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 MockHost

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

MockHost is a mock of Host interface.

func NewMockHost

func NewMockHost(ctrl *gomock.Controller) *MockHost

NewMockHost creates a new mock instance.

func (*MockHost) EXPECT

func (m *MockHost) EXPECT() *MockHostMockRecorder

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

func (*MockHost) Network

func (m *MockHost) Network() network.Network

Network mocks base method.

func (*MockHost) NewStream

func (m *MockHost) NewStream(arg0 context.Context, arg1 peer.ID, arg2 ...protocol.ID) (network.Stream, error)

NewStream mocks base method.

func (*MockHost) SetStreamHandler

func (m *MockHost) SetStreamHandler(arg0 protocol.ID, arg1 network.StreamHandler)

SetStreamHandler mocks base method.

type MockHostMockRecorder

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

MockHostMockRecorder is the mock recorder for MockHost.

func (*MockHostMockRecorder) Network

func (mr *MockHostMockRecorder) Network() *gomock.Call

Network indicates an expected call of Network.

func (*MockHostMockRecorder) NewStream

func (mr *MockHostMockRecorder) NewStream(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call

NewStream indicates an expected call of NewStream.

func (*MockHostMockRecorder) SetStreamHandler

func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 interface{}) *gomock.Call

SetStreamHandler indicates an expected call of SetStreamHandler.

type MockRequestor

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

MockRequestor is a mock of Requestor interface.

func NewMockRequestor

func NewMockRequestor(ctrl *gomock.Controller) *MockRequestor

NewMockRequestor creates a new mock instance.

func (*MockRequestor) EXPECT

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

func (*MockRequestor) Request

func (m *MockRequestor) Request(arg0 context.Context, arg1 peer.ID, arg2 []byte, arg3 func([]byte), arg4 func(error)) error

Request mocks base method.

type MockRequestorMockRecorder

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

MockRequestorMockRecorder is the mock recorder for MockRequestor.

func (*MockRequestorMockRecorder) Request

func (mr *MockRequestorMockRecorder) 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