mocks

package
v0.0.0-...-2b5ea0c Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 6 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 mockConstructorTestingTNewConn) *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.

func (*Conn) Close

func (_m *Conn) Close() error

Close provides a mock function with given fields:

func (*Conn) LocalAddr

func (_m *Conn) LocalAddr() net.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() net.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 mockConstructorTestingTNewDialer) *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.

func (*Dialer) Dial

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

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

func (*Dialer) DialContext

func (_m *Dialer) DialContext(ctx context.Context, network string, address string) (net.Conn, error)

DialContext provides a mock function with given fields: ctx, network, address

func (*Dialer) DialContextTLS

func (_m *Dialer) DialContextTLS(ctx context.Context, network string, address string, tlsConfig *tls.Config) (net.Conn, error)

DialContextTLS provides a mock function with given fields: ctx, network, address, tlsConfig

type Option

type Option struct {
	mock.Mock
}

Option is an autogenerated mock type for the Option type

func NewOption

func NewOption(t mockConstructorTestingTNewOption) *Option

NewOption creates a new instance of Option. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*Option) Execute

func (_m *Option) Execute(conn *ftpconnection.ServerConnection) error

Execute provides a mock function with given fields: conn

type TextConnection

type TextConnection struct {
	mock.Mock
}

TextConnection is an autogenerated mock type for the TextConnection type

func NewTextConnection

func NewTextConnection(t mockConstructorTestingTNewTextConnection) *TextConnection

NewTextConnection creates a new instance of TextConnection. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*TextConnection) Close

func (_m *TextConnection) Close() error

Close provides a mock function with given fields:

func (*TextConnection) Cmd

func (_m *TextConnection) Cmd(format string, args ...interface{}) (uint, error)

Cmd provides a mock function with given fields: format, args

func (*TextConnection) ReadResponse

func (_m *TextConnection) ReadResponse(expectedCode int) (int, string, error)

ReadResponse provides a mock function with given fields: expectedCode

Jump to

Keyboard shortcuts

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