mocks

package
v2.26.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

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 ConnStub

type ConnStub struct {
	Repeats       int
	ReadBytes     int
	FramePosition int
	Separator     byte
}

func (*ConnStub) Close

func (s *ConnStub) Close() error

func (*ConnStub) LocalAddr

func (s *ConnStub) LocalAddr() net.Addr

func (*ConnStub) Read

func (s *ConnStub) Read(buff []byte) (int, error)

func (*ConnStub) RemoteAddr

func (s *ConnStub) RemoteAddr() net.Addr

func (*ConnStub) SetDeadline

func (s *ConnStub) SetDeadline(time.Time) error

func (*ConnStub) SetReadDeadline

func (s *ConnStub) SetReadDeadline(time.Time) error

func (*ConnStub) SetWriteDeadline

func (s *ConnStub) SetWriteDeadline(time.Time) error

func (*ConnStub) Write

func (s *ConnStub) Write([]byte) (int, error)

type MockConn

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

MockConn is a mock of Conn interface.

func NewMockConn

func NewMockConn(ctrl *gomock.Controller) *MockConn

NewMockConn creates a new mock instance.

func (*MockConn) Close

func (m *MockConn) Close() error

Close mocks base method.

func (*MockConn) EXPECT

func (m *MockConn) EXPECT() *MockConnMockRecorder

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

func (*MockConn) LocalAddr

func (m *MockConn) LocalAddr() net.Addr

LocalAddr mocks base method.

func (*MockConn) Read

func (m *MockConn) Read(arg0 []byte) (int, error)

Read mocks base method.

func (*MockConn) RemoteAddr

func (m *MockConn) RemoteAddr() net.Addr

RemoteAddr mocks base method.

func (*MockConn) SetDeadline

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

SetDeadline mocks base method.

func (*MockConn) SetReadDeadline

func (m *MockConn) SetReadDeadline(arg0 time.Time) error

SetReadDeadline mocks base method.

func (*MockConn) SetWriteDeadline

func (m *MockConn) SetWriteDeadline(arg0 time.Time) error

SetWriteDeadline mocks base method.

func (*MockConn) Write

func (m *MockConn) Write(arg0 []byte) (int, error)

Write mocks base method.

type MockConnMockRecorder

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

MockConnMockRecorder is the mock recorder for MockConn.

func (*MockConnMockRecorder) Close

func (mr *MockConnMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockConnMockRecorder) LocalAddr

func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call

LocalAddr indicates an expected call of LocalAddr.

func (*MockConnMockRecorder) Read

func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call

Read indicates an expected call of Read.

func (*MockConnMockRecorder) RemoteAddr

func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call

RemoteAddr indicates an expected call of RemoteAddr.

func (*MockConnMockRecorder) SetDeadline

func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call

SetDeadline indicates an expected call of SetDeadline.

func (*MockConnMockRecorder) SetReadDeadline

func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call

SetReadDeadline indicates an expected call of SetReadDeadline.

func (*MockConnMockRecorder) SetWriteDeadline

func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call

SetWriteDeadline indicates an expected call of SetWriteDeadline.

func (*MockConnMockRecorder) Write

func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call

Write indicates an expected call of Write.

type MockFrame

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

MockFrame is a mock of Frame interface.

func NewMockFrame

func NewMockFrame(ctrl *gomock.Controller) *MockFrame

NewMockFrame creates a new mock instance.

func (*MockFrame) EXPECT

func (m *MockFrame) EXPECT() *MockFrameMockRecorder

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

func (*MockFrame) Messages

func (m *MockFrame) Messages() [][]byte

Messages mocks base method.

func (*MockFrame) Release

func (m *MockFrame) Release()

Release mocks base method.

type MockFrameMockRecorder

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

MockFrameMockRecorder is the mock recorder for MockFrame.

func (*MockFrameMockRecorder) Messages

func (mr *MockFrameMockRecorder) Messages() *gomock.Call

Messages indicates an expected call of Messages.

func (*MockFrameMockRecorder) Release

func (mr *MockFrameMockRecorder) Release() *gomock.Call

Release indicates an expected call of Release.

type MockListener

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

MockListener is a mock of Listener interface.

func NewMockListener

func NewMockListener(ctrl *gomock.Controller) *MockListener

NewMockListener creates a new mock instance.

func (*MockListener) Accept

func (m *MockListener) Accept() (net.Conn, error)

Accept mocks base method.

func (*MockListener) Addr

func (m *MockListener) Addr() net.Addr

Addr mocks base method.

func (*MockListener) Close

func (m *MockListener) Close() error

Close mocks base method.

func (*MockListener) EXPECT

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

type MockListenerConfig

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

MockListenerConfig is a mock of ListenerConfig interface.

func NewMockListenerConfig

func NewMockListenerConfig(ctrl *gomock.Controller) *MockListenerConfig

NewMockListenerConfig creates a new mock instance.

func (*MockListenerConfig) EXPECT

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

func (*MockListenerConfig) Listen

func (m *MockListenerConfig) Listen(ctx context.Context, network, address string) (net.Listener, error)

Listen mocks base method.

type MockListenerConfigMockRecorder

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

MockListenerConfigMockRecorder is the mock recorder for MockListenerConfig.

func (*MockListenerConfigMockRecorder) Listen

func (mr *MockListenerConfigMockRecorder) Listen(ctx, network, address interface{}) *gomock.Call

Listen indicates an expected call of Listen.

type MockListenerMockRecorder

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

MockListenerMockRecorder is the mock recorder for MockListener.

func (*MockListenerMockRecorder) Accept

func (mr *MockListenerMockRecorder) Accept() *gomock.Call

Accept indicates an expected call of Accept.

func (*MockListenerMockRecorder) Addr

func (mr *MockListenerMockRecorder) Addr() *gomock.Call

Addr indicates an expected call of Addr.

func (*MockListenerMockRecorder) Close

func (mr *MockListenerMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

type MockWorker

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

MockWorker is a mock of Worker interface.

func NewMockWorker

func NewMockWorker(ctrl *gomock.Controller) *MockWorker

NewMockWorker creates a new mock instance.

func (*MockWorker) EXPECT

func (m *MockWorker) EXPECT() *MockWorkerMockRecorder

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

func (*MockWorker) Run

func (m *MockWorker) Run(ctx context.Context) error

Run mocks base method.

type MockWorkerMockRecorder

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

MockWorkerMockRecorder is the mock recorder for MockWorker.

func (*MockWorkerMockRecorder) Run

func (mr *MockWorkerMockRecorder) Run(ctx interface{}) *gomock.Call

Run indicates an expected call of Run.

Jump to

Keyboard shortcuts

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