mocks

package
v1.4.4-alpha.0-nomainnet Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2024 License: MIT 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 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) ConnManager added in v1.3.10

func (m *MockHost) ConnManager() connmgr.ConnManager

ConnManager mocks base method.

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 MockHostConnManagerCall added in v1.4.0

type MockHostConnManagerCall struct {
	*gomock.Call
}

MockHostConnManagerCall wrap *gomock.Call

func (*MockHostConnManagerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHostConnManagerCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHostConnManagerCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockHostMockRecorder

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

MockHostMockRecorder is the mock recorder for MockHost.

func (*MockHostMockRecorder) ConnManager added in v1.3.10

func (mr *MockHostMockRecorder) ConnManager() *MockHostConnManagerCall

ConnManager indicates an expected call of ConnManager.

func (*MockHostMockRecorder) Network

Network indicates an expected call of Network.

func (*MockHostMockRecorder) NewStream

func (mr *MockHostMockRecorder) NewStream(arg0, arg1 any, arg2 ...any) *MockHostNewStreamCall

NewStream indicates an expected call of NewStream.

func (*MockHostMockRecorder) SetStreamHandler

func (mr *MockHostMockRecorder) SetStreamHandler(arg0, arg1 any) *MockHostSetStreamHandlerCall

SetStreamHandler indicates an expected call of SetStreamHandler.

type MockHostNetworkCall added in v1.4.0

type MockHostNetworkCall struct {
	*gomock.Call
}

MockHostNetworkCall wrap *gomock.Call

func (*MockHostNetworkCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHostNetworkCall) DoAndReturn added in v1.4.0

func (c *MockHostNetworkCall) DoAndReturn(f func() network.Network) *MockHostNetworkCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHostNetworkCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockHostNewStreamCall added in v1.4.0

type MockHostNewStreamCall struct {
	*gomock.Call
}

MockHostNewStreamCall wrap *gomock.Call

func (*MockHostNewStreamCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHostNewStreamCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHostNewStreamCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockHostSetStreamHandlerCall added in v1.4.0

type MockHostSetStreamHandlerCall struct {
	*gomock.Call
}

MockHostSetStreamHandlerCall wrap *gomock.Call

func (*MockHostSetStreamHandlerCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockHostSetStreamHandlerCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockHostSetStreamHandlerCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockpeerStream added in v1.3.6

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

MockpeerStream is a mock of peerStream interface.

func NewMockpeerStream added in v1.3.6

func NewMockpeerStream(ctrl *gomock.Controller) *MockpeerStream

NewMockpeerStream creates a new mock instance.

func (*MockpeerStream) Close added in v1.3.6

func (m *MockpeerStream) Close() error

Close mocks base method.

func (*MockpeerStream) EXPECT added in v1.3.6

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

func (*MockpeerStream) Read added in v1.3.6

func (m *MockpeerStream) Read(p []byte) (int, error)

Read mocks base method.

func (*MockpeerStream) SetDeadline added in v1.3.6

func (m *MockpeerStream) SetDeadline(arg0 time.Time) error

SetDeadline mocks base method.

func (*MockpeerStream) Write added in v1.3.6

func (m *MockpeerStream) Write(p []byte) (int, error)

Write mocks base method.

type MockpeerStreamCloseCall added in v1.4.0

type MockpeerStreamCloseCall struct {
	*gomock.Call
}

MockpeerStreamCloseCall wrap *gomock.Call

func (*MockpeerStreamCloseCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockpeerStreamCloseCall) DoAndReturn added in v1.4.0

func (c *MockpeerStreamCloseCall) DoAndReturn(f func() error) *MockpeerStreamCloseCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpeerStreamCloseCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockpeerStreamMockRecorder added in v1.3.6

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

MockpeerStreamMockRecorder is the mock recorder for MockpeerStream.

func (*MockpeerStreamMockRecorder) Close added in v1.3.6

Close indicates an expected call of Close.

func (*MockpeerStreamMockRecorder) Read added in v1.3.6

Read indicates an expected call of Read.

func (*MockpeerStreamMockRecorder) SetDeadline added in v1.3.6

SetDeadline indicates an expected call of SetDeadline.

func (*MockpeerStreamMockRecorder) Write added in v1.3.6

Write indicates an expected call of Write.

type MockpeerStreamReadCall added in v1.4.0

type MockpeerStreamReadCall struct {
	*gomock.Call
}

MockpeerStreamReadCall wrap *gomock.Call

func (*MockpeerStreamReadCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockpeerStreamReadCall) DoAndReturn added in v1.4.0

func (c *MockpeerStreamReadCall) DoAndReturn(f func([]byte) (int, error)) *MockpeerStreamReadCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpeerStreamReadCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockpeerStreamSetDeadlineCall added in v1.4.0

type MockpeerStreamSetDeadlineCall struct {
	*gomock.Call
}

MockpeerStreamSetDeadlineCall wrap *gomock.Call

func (*MockpeerStreamSetDeadlineCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockpeerStreamSetDeadlineCall) DoAndReturn added in v1.4.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpeerStreamSetDeadlineCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

type MockpeerStreamWriteCall added in v1.4.0

type MockpeerStreamWriteCall struct {
	*gomock.Call
}

MockpeerStreamWriteCall wrap *gomock.Call

func (*MockpeerStreamWriteCall) Do added in v1.4.0

Do rewrite *gomock.Call.Do

func (*MockpeerStreamWriteCall) DoAndReturn added in v1.4.0

func (c *MockpeerStreamWriteCall) DoAndReturn(f func([]byte) (int, error)) *MockpeerStreamWriteCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockpeerStreamWriteCall) Return added in v1.4.0

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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