mocks

package
v0.0.0-...-8f56db8 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 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 (*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 (*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