mocks

package
v6.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	mock.Mock
}

Client is an autogenerated mock type for the Client type

func NewClient

func NewClient(t mockConstructorTestingTNewClient) *Client

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

func (*Client) Delete

func (_m *Client) Delete(path string) error

Delete provides a mock function with given fields: path

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) GetEntry

func (_m *Client) GetEntry(p string) (*ftp.Entry, error)

GetEntry provides a mock function with given fields: p

func (*Client) IsSetTimeSupported

func (_m *Client) IsSetTimeSupported() bool

IsSetTimeSupported provides a mock function with given fields:

func (*Client) IsTimePreciseInList

func (_m *Client) IsTimePreciseInList() bool

IsTimePreciseInList provides a mock function with given fields:

func (*Client) List

func (_m *Client) List(p string) ([]*ftp.Entry, error)

List provides a mock function with given fields: p

func (*Client) Login

func (_m *Client) Login(user string, password string) error

Login provides a mock function with given fields: user, password

func (*Client) MakeDir

func (_m *Client) MakeDir(path string) error

MakeDir provides a mock function with given fields: path

func (*Client) Quit

func (_m *Client) Quit() error

Quit provides a mock function with given fields:

func (*Client) Rename

func (_m *Client) Rename(from string, to string) error

Rename provides a mock function with given fields: from, to

func (*Client) RetrFrom

func (_m *Client) RetrFrom(path string, offset uint64) (*ftp.Response, error)

RetrFrom provides a mock function with given fields: path, offset

func (*Client) SetTime

func (_m *Client) SetTime(path string, t time.Time) error

SetTime provides a mock function with given fields: path, t

func (*Client) StorFrom

func (_m *Client) StorFrom(path string, r io.Reader, offset uint64) error

StorFrom provides a mock function with given fields: path, r, offset

type Client_Delete_Call

type Client_Delete_Call struct {
	*mock.Call
}

Client_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*Client_Delete_Call) Return

func (_c *Client_Delete_Call) Return(_a0 error) *Client_Delete_Call

func (*Client_Delete_Call) Run

func (_c *Client_Delete_Call) Run(run func(path string)) *Client_Delete_Call

func (*Client_Delete_Call) RunAndReturn

func (_c *Client_Delete_Call) RunAndReturn(run func(string) error) *Client_Delete_Call

type Client_Expecter

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

func (*Client_Expecter) Delete

func (_e *Client_Expecter) Delete(path interface{}) *Client_Delete_Call

Delete is a helper method to define mock.On call

  • path string

func (*Client_Expecter) GetEntry

func (_e *Client_Expecter) GetEntry(p interface{}) *Client_GetEntry_Call

GetEntry is a helper method to define mock.On call

  • p string

func (*Client_Expecter) IsSetTimeSupported

func (_e *Client_Expecter) IsSetTimeSupported() *Client_IsSetTimeSupported_Call

IsSetTimeSupported is a helper method to define mock.On call

func (*Client_Expecter) IsTimePreciseInList

func (_e *Client_Expecter) IsTimePreciseInList() *Client_IsTimePreciseInList_Call

IsTimePreciseInList is a helper method to define mock.On call

func (*Client_Expecter) List

func (_e *Client_Expecter) List(p interface{}) *Client_List_Call

List is a helper method to define mock.On call

  • p string

func (*Client_Expecter) Login

func (_e *Client_Expecter) Login(user interface{}, password interface{}) *Client_Login_Call

Login is a helper method to define mock.On call

  • user string
  • password string

func (*Client_Expecter) MakeDir

func (_e *Client_Expecter) MakeDir(path interface{}) *Client_MakeDir_Call

MakeDir is a helper method to define mock.On call

  • path string

func (*Client_Expecter) Quit

func (_e *Client_Expecter) Quit() *Client_Quit_Call

Quit is a helper method to define mock.On call

func (*Client_Expecter) Rename

func (_e *Client_Expecter) Rename(from interface{}, to interface{}) *Client_Rename_Call

Rename is a helper method to define mock.On call

  • from string
  • to string

func (*Client_Expecter) RetrFrom

func (_e *Client_Expecter) RetrFrom(path interface{}, offset interface{}) *Client_RetrFrom_Call

RetrFrom is a helper method to define mock.On call

  • path string
  • offset uint64

func (*Client_Expecter) SetTime

func (_e *Client_Expecter) SetTime(path interface{}, t interface{}) *Client_SetTime_Call

SetTime is a helper method to define mock.On call

  • path string
  • t time.Time

func (*Client_Expecter) StorFrom

func (_e *Client_Expecter) StorFrom(path interface{}, r interface{}, offset interface{}) *Client_StorFrom_Call

StorFrom is a helper method to define mock.On call

  • path string
  • r io.Reader
  • offset uint64

type Client_GetEntry_Call

type Client_GetEntry_Call struct {
	*mock.Call
}

Client_GetEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntry'

func (*Client_GetEntry_Call) Return

func (_c *Client_GetEntry_Call) Return(_a0 *ftp.Entry, _a1 error) *Client_GetEntry_Call

func (*Client_GetEntry_Call) Run

func (_c *Client_GetEntry_Call) Run(run func(p string)) *Client_GetEntry_Call

func (*Client_GetEntry_Call) RunAndReturn

func (_c *Client_GetEntry_Call) RunAndReturn(run func(string) (*ftp.Entry, error)) *Client_GetEntry_Call

type Client_IsSetTimeSupported_Call

type Client_IsSetTimeSupported_Call struct {
	*mock.Call
}

Client_IsSetTimeSupported_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSetTimeSupported'

func (*Client_IsSetTimeSupported_Call) Return

func (*Client_IsSetTimeSupported_Call) Run

func (*Client_IsSetTimeSupported_Call) RunAndReturn

type Client_IsTimePreciseInList_Call

type Client_IsTimePreciseInList_Call struct {
	*mock.Call
}

Client_IsTimePreciseInList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTimePreciseInList'

func (*Client_IsTimePreciseInList_Call) Return

func (*Client_IsTimePreciseInList_Call) Run

func (*Client_IsTimePreciseInList_Call) RunAndReturn

type Client_List_Call

type Client_List_Call struct {
	*mock.Call
}

Client_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*Client_List_Call) Return

func (_c *Client_List_Call) Return(_a0 []*ftp.Entry, _a1 error) *Client_List_Call

func (*Client_List_Call) Run

func (_c *Client_List_Call) Run(run func(p string)) *Client_List_Call

func (*Client_List_Call) RunAndReturn

func (_c *Client_List_Call) RunAndReturn(run func(string) ([]*ftp.Entry, error)) *Client_List_Call

type Client_Login_Call

type Client_Login_Call struct {
	*mock.Call
}

Client_Login_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Login'

func (*Client_Login_Call) Return

func (_c *Client_Login_Call) Return(_a0 error) *Client_Login_Call

func (*Client_Login_Call) Run

func (_c *Client_Login_Call) Run(run func(user string, password string)) *Client_Login_Call

func (*Client_Login_Call) RunAndReturn

func (_c *Client_Login_Call) RunAndReturn(run func(string, string) error) *Client_Login_Call

type Client_MakeDir_Call

type Client_MakeDir_Call struct {
	*mock.Call
}

Client_MakeDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeDir'

func (*Client_MakeDir_Call) Return

func (*Client_MakeDir_Call) Run

func (_c *Client_MakeDir_Call) Run(run func(path string)) *Client_MakeDir_Call

func (*Client_MakeDir_Call) RunAndReturn

func (_c *Client_MakeDir_Call) RunAndReturn(run func(string) error) *Client_MakeDir_Call

type Client_Quit_Call

type Client_Quit_Call struct {
	*mock.Call
}

Client_Quit_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Quit'

func (*Client_Quit_Call) Return

func (_c *Client_Quit_Call) Return(_a0 error) *Client_Quit_Call

func (*Client_Quit_Call) Run

func (_c *Client_Quit_Call) Run(run func()) *Client_Quit_Call

func (*Client_Quit_Call) RunAndReturn

func (_c *Client_Quit_Call) RunAndReturn(run func() error) *Client_Quit_Call

type Client_Rename_Call

type Client_Rename_Call struct {
	*mock.Call
}

Client_Rename_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rename'

func (*Client_Rename_Call) Return

func (_c *Client_Rename_Call) Return(_a0 error) *Client_Rename_Call

func (*Client_Rename_Call) Run

func (_c *Client_Rename_Call) Run(run func(from string, to string)) *Client_Rename_Call

func (*Client_Rename_Call) RunAndReturn

func (_c *Client_Rename_Call) RunAndReturn(run func(string, string) error) *Client_Rename_Call

type Client_RetrFrom_Call

type Client_RetrFrom_Call struct {
	*mock.Call
}

Client_RetrFrom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RetrFrom'

func (*Client_RetrFrom_Call) Return

func (*Client_RetrFrom_Call) Run

func (_c *Client_RetrFrom_Call) Run(run func(path string, offset uint64)) *Client_RetrFrom_Call

func (*Client_RetrFrom_Call) RunAndReturn

func (_c *Client_RetrFrom_Call) RunAndReturn(run func(string, uint64) (*ftp.Response, error)) *Client_RetrFrom_Call

type Client_SetTime_Call

type Client_SetTime_Call struct {
	*mock.Call
}

Client_SetTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTime'

func (*Client_SetTime_Call) Return

func (*Client_SetTime_Call) Run

func (_c *Client_SetTime_Call) Run(run func(path string, t time.Time)) *Client_SetTime_Call

func (*Client_SetTime_Call) RunAndReturn

func (_c *Client_SetTime_Call) RunAndReturn(run func(string, time.Time) error) *Client_SetTime_Call

type Client_StorFrom_Call

type Client_StorFrom_Call struct {
	*mock.Call
}

Client_StorFrom_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'StorFrom'

func (*Client_StorFrom_Call) Return

func (*Client_StorFrom_Call) Run

func (_c *Client_StorFrom_Call) Run(run func(path string, r io.Reader, offset uint64)) *Client_StorFrom_Call

func (*Client_StorFrom_Call) RunAndReturn

func (_c *Client_StorFrom_Call) RunAndReturn(run func(string, io.Reader, uint64) error) *Client_StorFrom_Call

type DataConn

type DataConn struct {
	mock.Mock
}

DataConn is an autogenerated mock type for the DataConn type

func NewDataConn

func NewDataConn(t mockConstructorTestingTNewDataConn) *DataConn

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

func (*DataConn) Close

func (_m *DataConn) Close() error

Close provides a mock function with given fields:

func (*DataConn) Delete

func (_m *DataConn) Delete(path string) error

Delete provides a mock function with given fields: path

func (*DataConn) EXPECT

func (_m *DataConn) EXPECT() *DataConn_Expecter

func (*DataConn) GetEntry

func (_m *DataConn) GetEntry(p string) (*ftp.Entry, error)

GetEntry provides a mock function with given fields: p

func (*DataConn) IsSetTimeSupported

func (_m *DataConn) IsSetTimeSupported() bool

IsSetTimeSupported provides a mock function with given fields:

func (*DataConn) IsTimePreciseInList

func (_m *DataConn) IsTimePreciseInList() bool

IsTimePreciseInList provides a mock function with given fields:

func (*DataConn) List

func (_m *DataConn) List(p string) ([]*ftp.Entry, error)

List provides a mock function with given fields: p

func (*DataConn) MakeDir

func (_m *DataConn) MakeDir(path string) error

MakeDir provides a mock function with given fields: path

func (*DataConn) Mode

func (_m *DataConn) Mode() types.OpenType

Mode provides a mock function with given fields:

func (*DataConn) Read

func (_m *DataConn) Read(p []byte) (int, error)

Read provides a mock function with given fields: p

func (*DataConn) Rename

func (_m *DataConn) Rename(from string, to string) error

Rename provides a mock function with given fields: from, to

func (*DataConn) SetTime

func (_m *DataConn) SetTime(path string, t time.Time) error

SetTime provides a mock function with given fields: path, t

func (*DataConn) Write

func (_m *DataConn) Write(p []byte) (int, error)

Write provides a mock function with given fields: p

type DataConn_Close_Call

type DataConn_Close_Call struct {
	*mock.Call
}

DataConn_Close_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Close'

func (*DataConn_Close_Call) Return

func (*DataConn_Close_Call) Run

func (_c *DataConn_Close_Call) Run(run func()) *DataConn_Close_Call

func (*DataConn_Close_Call) RunAndReturn

func (_c *DataConn_Close_Call) RunAndReturn(run func() error) *DataConn_Close_Call

type DataConn_Delete_Call

type DataConn_Delete_Call struct {
	*mock.Call
}

DataConn_Delete_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Delete'

func (*DataConn_Delete_Call) Return

func (*DataConn_Delete_Call) Run

func (_c *DataConn_Delete_Call) Run(run func(path string)) *DataConn_Delete_Call

func (*DataConn_Delete_Call) RunAndReturn

func (_c *DataConn_Delete_Call) RunAndReturn(run func(string) error) *DataConn_Delete_Call

type DataConn_Expecter

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

func (*DataConn_Expecter) Close

Close is a helper method to define mock.On call

func (*DataConn_Expecter) Delete

func (_e *DataConn_Expecter) Delete(path interface{}) *DataConn_Delete_Call

Delete is a helper method to define mock.On call

  • path string

func (*DataConn_Expecter) GetEntry

func (_e *DataConn_Expecter) GetEntry(p interface{}) *DataConn_GetEntry_Call

GetEntry is a helper method to define mock.On call

  • p string

func (*DataConn_Expecter) IsSetTimeSupported

func (_e *DataConn_Expecter) IsSetTimeSupported() *DataConn_IsSetTimeSupported_Call

IsSetTimeSupported is a helper method to define mock.On call

func (*DataConn_Expecter) IsTimePreciseInList

func (_e *DataConn_Expecter) IsTimePreciseInList() *DataConn_IsTimePreciseInList_Call

IsTimePreciseInList is a helper method to define mock.On call

func (*DataConn_Expecter) List

func (_e *DataConn_Expecter) List(p interface{}) *DataConn_List_Call

List is a helper method to define mock.On call

  • p string

func (*DataConn_Expecter) MakeDir

func (_e *DataConn_Expecter) MakeDir(path interface{}) *DataConn_MakeDir_Call

MakeDir is a helper method to define mock.On call

  • path string

func (*DataConn_Expecter) Mode

Mode is a helper method to define mock.On call

func (*DataConn_Expecter) Read

func (_e *DataConn_Expecter) Read(p interface{}) *DataConn_Read_Call

Read is a helper method to define mock.On call

  • p []byte

func (*DataConn_Expecter) Rename

func (_e *DataConn_Expecter) Rename(from interface{}, to interface{}) *DataConn_Rename_Call

Rename is a helper method to define mock.On call

  • from string
  • to string

func (*DataConn_Expecter) SetTime

func (_e *DataConn_Expecter) SetTime(path interface{}, t interface{}) *DataConn_SetTime_Call

SetTime is a helper method to define mock.On call

  • path string
  • t time.Time

func (*DataConn_Expecter) Write

func (_e *DataConn_Expecter) Write(p interface{}) *DataConn_Write_Call

Write is a helper method to define mock.On call

  • p []byte

type DataConn_GetEntry_Call

type DataConn_GetEntry_Call struct {
	*mock.Call
}

DataConn_GetEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetEntry'

func (*DataConn_GetEntry_Call) Return

func (*DataConn_GetEntry_Call) Run

func (*DataConn_GetEntry_Call) RunAndReturn

func (_c *DataConn_GetEntry_Call) RunAndReturn(run func(string) (*ftp.Entry, error)) *DataConn_GetEntry_Call

type DataConn_IsSetTimeSupported_Call

type DataConn_IsSetTimeSupported_Call struct {
	*mock.Call
}

DataConn_IsSetTimeSupported_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsSetTimeSupported'

func (*DataConn_IsSetTimeSupported_Call) Return

func (*DataConn_IsSetTimeSupported_Call) Run

func (*DataConn_IsSetTimeSupported_Call) RunAndReturn

type DataConn_IsTimePreciseInList_Call

type DataConn_IsTimePreciseInList_Call struct {
	*mock.Call
}

DataConn_IsTimePreciseInList_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsTimePreciseInList'

func (*DataConn_IsTimePreciseInList_Call) Return

func (*DataConn_IsTimePreciseInList_Call) Run

func (*DataConn_IsTimePreciseInList_Call) RunAndReturn

type DataConn_List_Call

type DataConn_List_Call struct {
	*mock.Call
}

DataConn_List_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'List'

func (*DataConn_List_Call) Return

func (_c *DataConn_List_Call) Return(_a0 []*ftp.Entry, _a1 error) *DataConn_List_Call

func (*DataConn_List_Call) Run

func (_c *DataConn_List_Call) Run(run func(p string)) *DataConn_List_Call

func (*DataConn_List_Call) RunAndReturn

func (_c *DataConn_List_Call) RunAndReturn(run func(string) ([]*ftp.Entry, error)) *DataConn_List_Call

type DataConn_MakeDir_Call

type DataConn_MakeDir_Call struct {
	*mock.Call
}

DataConn_MakeDir_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'MakeDir'

func (*DataConn_MakeDir_Call) Return

func (*DataConn_MakeDir_Call) Run

func (_c *DataConn_MakeDir_Call) Run(run func(path string)) *DataConn_MakeDir_Call

func (*DataConn_MakeDir_Call) RunAndReturn

func (_c *DataConn_MakeDir_Call) RunAndReturn(run func(string) error) *DataConn_MakeDir_Call

type DataConn_Mode_Call

type DataConn_Mode_Call struct {
	*mock.Call
}

DataConn_Mode_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Mode'

func (*DataConn_Mode_Call) Return

func (*DataConn_Mode_Call) Run

func (_c *DataConn_Mode_Call) Run(run func()) *DataConn_Mode_Call

func (*DataConn_Mode_Call) RunAndReturn

func (_c *DataConn_Mode_Call) RunAndReturn(run func() types.OpenType) *DataConn_Mode_Call

type DataConn_Read_Call

type DataConn_Read_Call struct {
	*mock.Call
}

DataConn_Read_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Read'

func (*DataConn_Read_Call) Return

func (_c *DataConn_Read_Call) Return(n int, err error) *DataConn_Read_Call

func (*DataConn_Read_Call) Run

func (_c *DataConn_Read_Call) Run(run func(p []byte)) *DataConn_Read_Call

func (*DataConn_Read_Call) RunAndReturn

func (_c *DataConn_Read_Call) RunAndReturn(run func([]byte) (int, error)) *DataConn_Read_Call

type DataConn_Rename_Call

type DataConn_Rename_Call struct {
	*mock.Call
}

DataConn_Rename_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Rename'

func (*DataConn_Rename_Call) Return

func (*DataConn_Rename_Call) Run

func (_c *DataConn_Rename_Call) Run(run func(from string, to string)) *DataConn_Rename_Call

func (*DataConn_Rename_Call) RunAndReturn

func (_c *DataConn_Rename_Call) RunAndReturn(run func(string, string) error) *DataConn_Rename_Call

type DataConn_SetTime_Call

type DataConn_SetTime_Call struct {
	*mock.Call
}

DataConn_SetTime_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetTime'

func (*DataConn_SetTime_Call) Return

func (*DataConn_SetTime_Call) Run

func (_c *DataConn_SetTime_Call) Run(run func(path string, t time.Time)) *DataConn_SetTime_Call

func (*DataConn_SetTime_Call) RunAndReturn

func (_c *DataConn_SetTime_Call) RunAndReturn(run func(string, time.Time) error) *DataConn_SetTime_Call

type DataConn_Write_Call

type DataConn_Write_Call struct {
	*mock.Call
}

DataConn_Write_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Write'

func (*DataConn_Write_Call) Return

func (_c *DataConn_Write_Call) Return(n int, err error) *DataConn_Write_Call

func (*DataConn_Write_Call) Run

func (_c *DataConn_Write_Call) Run(run func(p []byte)) *DataConn_Write_Call

func (*DataConn_Write_Call) RunAndReturn

func (_c *DataConn_Write_Call) RunAndReturn(run func([]byte) (int, error)) *DataConn_Write_Call

Jump to

Keyboard shortcuts

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