mocks

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 3 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 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