Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockpeerStream
- type MockpeerStreamCloseCall
- type MockpeerStreamMockRecorder
- func (mr *MockpeerStreamMockRecorder) Close() *MockpeerStreamCloseCall
- func (mr *MockpeerStreamMockRecorder) Read(p any) *MockpeerStreamReadCall
- func (mr *MockpeerStreamMockRecorder) SetDeadline(arg0 any) *MockpeerStreamSetDeadlineCall
- func (mr *MockpeerStreamMockRecorder) Write(p any) *MockpeerStreamWriteCall
- type MockpeerStreamReadCall
- type MockpeerStreamSetDeadlineCall
- type MockpeerStreamWriteCall
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
func (m *MockpeerStream) EXPECT() *MockpeerStreamMockRecorder
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.
type MockpeerStreamCloseCall ¶ added in v1.4.0
MockpeerStreamCloseCall wrap *gomock.Call
func (*MockpeerStreamCloseCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamCloseCall) Do(f func() error) *MockpeerStreamCloseCall
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
func (c *MockpeerStreamCloseCall) Return(arg0 error) *MockpeerStreamCloseCall
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
func (mr *MockpeerStreamMockRecorder) Close() *MockpeerStreamCloseCall
Close indicates an expected call of Close.
func (*MockpeerStreamMockRecorder) Read ¶ added in v1.3.6
func (mr *MockpeerStreamMockRecorder) Read(p any) *MockpeerStreamReadCall
Read indicates an expected call of Read.
func (*MockpeerStreamMockRecorder) SetDeadline ¶ added in v1.3.6
func (mr *MockpeerStreamMockRecorder) SetDeadline(arg0 any) *MockpeerStreamSetDeadlineCall
SetDeadline indicates an expected call of SetDeadline.
func (*MockpeerStreamMockRecorder) Write ¶ added in v1.3.6
func (mr *MockpeerStreamMockRecorder) Write(p any) *MockpeerStreamWriteCall
Write indicates an expected call of Write.
type MockpeerStreamReadCall ¶ added in v1.4.0
MockpeerStreamReadCall wrap *gomock.Call
func (*MockpeerStreamReadCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamReadCall) Do(f func([]byte) (int, error)) *MockpeerStreamReadCall
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
func (c *MockpeerStreamReadCall) Return(n int, err error) *MockpeerStreamReadCall
Return rewrite *gomock.Call.Return
type MockpeerStreamSetDeadlineCall ¶ added in v1.4.0
MockpeerStreamSetDeadlineCall wrap *gomock.Call
func (*MockpeerStreamSetDeadlineCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamSetDeadlineCall) Do(f func(time.Time) error) *MockpeerStreamSetDeadlineCall
Do rewrite *gomock.Call.Do
func (*MockpeerStreamSetDeadlineCall) DoAndReturn ¶ added in v1.4.0
func (c *MockpeerStreamSetDeadlineCall) DoAndReturn(f func(time.Time) error) *MockpeerStreamSetDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockpeerStreamSetDeadlineCall) Return ¶ added in v1.4.0
func (c *MockpeerStreamSetDeadlineCall) Return(arg0 error) *MockpeerStreamSetDeadlineCall
Return rewrite *gomock.Call.Return
type MockpeerStreamWriteCall ¶ added in v1.4.0
MockpeerStreamWriteCall wrap *gomock.Call
func (*MockpeerStreamWriteCall) Do ¶ added in v1.4.0
func (c *MockpeerStreamWriteCall) Do(f func([]byte) (int, error)) *MockpeerStreamWriteCall
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
func (c *MockpeerStreamWriteCall) Return(n int, err error) *MockpeerStreamWriteCall
Return rewrite *gomock.Call.Return