mock

package
v0.45.2 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: AGPL-3.0 Imports: 2 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WebsocketConnection

type WebsocketConnection struct {
	mock.Mock
}

WebsocketConnection is an autogenerated mock type for the WebsocketConnection type

func NewWebsocketConnection

func NewWebsocketConnection(t interface {
	mock.TestingT
	Cleanup(func())
}) *WebsocketConnection

NewWebsocketConnection creates a new instance of WebsocketConnection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*WebsocketConnection) Close

func (_m *WebsocketConnection) Close() error

Close provides a mock function with no fields

func (*WebsocketConnection) ReadJSON

func (_m *WebsocketConnection) ReadJSON(v interface{}) error

ReadJSON provides a mock function with given fields: v

func (*WebsocketConnection) SetPongHandler

func (_m *WebsocketConnection) SetPongHandler(h func(string) error)

SetPongHandler provides a mock function with given fields: h

func (*WebsocketConnection) SetReadDeadline

func (_m *WebsocketConnection) SetReadDeadline(deadline time.Time) error

SetReadDeadline provides a mock function with given fields: deadline

func (*WebsocketConnection) SetWriteDeadline

func (_m *WebsocketConnection) SetWriteDeadline(deadline time.Time) error

SetWriteDeadline provides a mock function with given fields: deadline

func (*WebsocketConnection) WriteControl

func (_m *WebsocketConnection) WriteControl(messageType int, deadline time.Time) error

WriteControl provides a mock function with given fields: messageType, deadline

func (*WebsocketConnection) WriteJSON

func (_m *WebsocketConnection) WriteJSON(v interface{}) error

WriteJSON provides a mock function with given fields: v

Jump to

Keyboard shortcuts

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