mocks

package
v0.0.0-...-01ad037 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	mock.Mock
}

Conn is an autogenerated mock type for the Conn type

func NewConn

func NewConn(t interface {
	mock.TestingT
	Cleanup(func())
}) *Conn

NewConn creates a new instance of Conn. 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 (*Conn) Close

func (_m *Conn) Close() error

Close provides a mock function with given fields:

func (*Conn) LocalAddr

func (_m *Conn) LocalAddr() net2.Addr

LocalAddr provides a mock function with given fields:

func (*Conn) Read

func (_m *Conn) Read(b []byte) (int, error)

Read provides a mock function with given fields: b

func (*Conn) RemoteAddr

func (_m *Conn) RemoteAddr() net2.Addr

RemoteAddr provides a mock function with given fields:

func (*Conn) SetDeadline

func (_m *Conn) SetDeadline(t time.Time) error

SetDeadline provides a mock function with given fields: t

func (*Conn) SetReadDeadline

func (_m *Conn) SetReadDeadline(t time.Time) error

SetReadDeadline provides a mock function with given fields: t

func (*Conn) SetWriteDeadline

func (_m *Conn) SetWriteDeadline(t time.Time) error

SetWriteDeadline provides a mock function with given fields: t

func (*Conn) Write

func (_m *Conn) Write(b []byte) (int, error)

Write provides a mock function with given fields: b

type Dialer

type Dialer struct {
	mock.Mock
}

Dialer is an autogenerated mock type for the Dialer type

func NewDialer

func NewDialer(t interface {
	mock.TestingT
	Cleanup(func())
}) *Dialer

NewDialer creates a new instance of Dialer. 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 (*Dialer) Dial

func (_m *Dialer) Dial(network string, addr string) (net.Conn, error)

Dial provides a mock function with given fields: network, addr

Jump to

Keyboard shortcuts

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