mock

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

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

MockClient is a mock of Client interface.

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

NewMockClient creates a new mock instance.

func (*MockClient) EXPECT

func (m *MockClient) EXPECT() *MockClientMockRecorder

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

func (*MockClient) GetReadChannel

func (m *MockClient) GetReadChannel() <-chan []byte

GetReadChannel mocks base method.

func (*MockClient) GetReadErrorChannel

func (m *MockClient) GetReadErrorChannel() <-chan error

GetReadErrorChannel mocks base method.

func (*MockClient) GetReconnectCount

func (m *MockClient) GetReconnectCount() int64

GetReconnectCount mocks base method.

func (*MockClient) Wait

func (m *MockClient) Wait(timeout time.Duration)

Wait mocks base method.

func (*MockClient) Write

func (m *MockClient) Write(id string, data []byte) error

Write mocks base method.

func (*MockClient) WriteSync

func (m *MockClient) WriteSync(id string, data []byte, timeout time.Duration) ([]byte, error)

WriteSync mocks base method.

type MockClientMockRecorder

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

MockClientMockRecorder is the mock recorder for MockClient.

func (*MockClientMockRecorder) GetReadChannel

func (mr *MockClientMockRecorder) GetReadChannel() *gomock.Call

GetReadChannel indicates an expected call of GetReadChannel.

func (*MockClientMockRecorder) GetReadErrorChannel

func (mr *MockClientMockRecorder) GetReadErrorChannel() *gomock.Call

GetReadErrorChannel indicates an expected call of GetReadErrorChannel.

func (*MockClientMockRecorder) GetReconnectCount

func (mr *MockClientMockRecorder) GetReconnectCount() *gomock.Call

GetReconnectCount indicates an expected call of GetReconnectCount.

func (*MockClientMockRecorder) Wait

func (mr *MockClientMockRecorder) Wait(timeout interface{}) *gomock.Call

Wait indicates an expected call of Wait.

func (*MockClientMockRecorder) Write

func (mr *MockClientMockRecorder) Write(id, data interface{}) *gomock.Call

Write indicates an expected call of Write.

func (*MockClientMockRecorder) WriteSync

func (mr *MockClientMockRecorder) WriteSync(id, data, timeout interface{}) *gomock.Call

WriteSync indicates an expected call of WriteSync.

type MockConnection

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

MockConnection is a mock of Connection interface.

func NewMockConnection

func NewMockConnection(ctrl *gomock.Controller) *MockConnection

NewMockConnection creates a new mock instance.

func (*MockConnection) EXPECT

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

func (*MockConnection) ReadMessage

func (m *MockConnection) ReadMessage() (int, []byte, error)

ReadMessage mocks base method.

func (*MockConnection) RestoreConnection

func (m *MockConnection) RestoreConnection() (websocket.Connection, error)

RestoreConnection mocks base method.

func (*MockConnection) WriteMessage

func (m *MockConnection) WriteMessage(messageType int, data []byte) error

WriteMessage mocks base method.

type MockConnectionMockRecorder

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

MockConnectionMockRecorder is the mock recorder for MockConnection.

func (*MockConnectionMockRecorder) ReadMessage

func (mr *MockConnectionMockRecorder) ReadMessage() *gomock.Call

ReadMessage indicates an expected call of ReadMessage.

func (*MockConnectionMockRecorder) RestoreConnection

func (mr *MockConnectionMockRecorder) RestoreConnection() *gomock.Call

RestoreConnection indicates an expected call of RestoreConnection.

func (*MockConnectionMockRecorder) WriteMessage

func (mr *MockConnectionMockRecorder) WriteMessage(messageType, data interface{}) *gomock.Call

WriteMessage indicates an expected call of WriteMessage.

Jump to

Keyboard shortcuts

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