mocks

package
v7.10.0 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: MIT Imports: 4 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 interface {
	mock.TestingT
	Cleanup(func())
}) *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. The first argument is typically a *testing.T value.

func (*Client) Copy

func (_mock *Client) Copy(srcFile vfs.File, tgtFile vfs.File) error

Copy provides a mock function for the type Client

func (*Client) Delete

func (_mock *Client) Delete(file vfs.File) error

Delete provides a mock function for the type Client

func (*Client) DeleteAllVersions

func (_mock *Client) DeleteAllVersions(file vfs.File) error

DeleteAllVersions provides a mock function for the type Client

func (*Client) Download

func (_mock *Client) Download(file vfs.File) (io.ReadCloser, error)

Download provides a mock function for the type Client

func (*Client) EXPECT

func (_m *Client) EXPECT() *Client_Expecter

func (*Client) List

func (_mock *Client) List(l vfs.Location) ([]string, error)

List provides a mock function for the type Client

func (*Client) Properties

func (_mock *Client) Properties(locationURI string, filePath string) (*types.BlobProperties, error)

Properties provides a mock function for the type Client

func (*Client) SetMetadata

func (_mock *Client) SetMetadata(file vfs.File, metadata map[string]*string) error

SetMetadata provides a mock function for the type Client

func (*Client) Upload

func (_mock *Client) Upload(file vfs.File, content io.ReadSeeker, contentType string) error

Upload provides a mock function for the type Client

type Client_Copy_Call

type Client_Copy_Call struct {
	*mock.Call
}

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

func (*Client_Copy_Call) Return

func (_c *Client_Copy_Call) Return(err error) *Client_Copy_Call

func (*Client_Copy_Call) Run

func (_c *Client_Copy_Call) Run(run func(srcFile vfs.File, tgtFile vfs.File)) *Client_Copy_Call

func (*Client_Copy_Call) RunAndReturn

func (_c *Client_Copy_Call) RunAndReturn(run func(srcFile vfs.File, tgtFile vfs.File) error) *Client_Copy_Call

type Client_DeleteAllVersions_Call

type Client_DeleteAllVersions_Call struct {
	*mock.Call
}

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

func (*Client_DeleteAllVersions_Call) Return

func (*Client_DeleteAllVersions_Call) Run

func (_c *Client_DeleteAllVersions_Call) Run(run func(file vfs.File)) *Client_DeleteAllVersions_Call

func (*Client_DeleteAllVersions_Call) RunAndReturn

func (_c *Client_DeleteAllVersions_Call) RunAndReturn(run func(file vfs.File) error) *Client_DeleteAllVersions_Call

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(err error) *Client_Delete_Call

func (*Client_Delete_Call) Run

func (_c *Client_Delete_Call) Run(run func(file vfs.File)) *Client_Delete_Call

func (*Client_Delete_Call) RunAndReturn

func (_c *Client_Delete_Call) RunAndReturn(run func(file vfs.File) error) *Client_Delete_Call

type Client_Download_Call

type Client_Download_Call struct {
	*mock.Call
}

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

func (*Client_Download_Call) Return

func (_c *Client_Download_Call) Return(readCloser io.ReadCloser, err error) *Client_Download_Call

func (*Client_Download_Call) Run

func (_c *Client_Download_Call) Run(run func(file vfs.File)) *Client_Download_Call

func (*Client_Download_Call) RunAndReturn

func (_c *Client_Download_Call) RunAndReturn(run func(file vfs.File) (io.ReadCloser, error)) *Client_Download_Call

type Client_Expecter

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

func (*Client_Expecter) Copy

func (_e *Client_Expecter) Copy(srcFile interface{}, tgtFile interface{}) *Client_Copy_Call

Copy is a helper method to define mock.On call

  • srcFile vfs.File
  • tgtFile vfs.File

func (*Client_Expecter) Delete

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

Delete is a helper method to define mock.On call

  • file vfs.File

func (*Client_Expecter) DeleteAllVersions

func (_e *Client_Expecter) DeleteAllVersions(file interface{}) *Client_DeleteAllVersions_Call

DeleteAllVersions is a helper method to define mock.On call

  • file vfs.File

func (*Client_Expecter) Download

func (_e *Client_Expecter) Download(file interface{}) *Client_Download_Call

Download is a helper method to define mock.On call

  • file vfs.File

func (*Client_Expecter) List

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

List is a helper method to define mock.On call

  • l vfs.Location

func (*Client_Expecter) Properties

func (_e *Client_Expecter) Properties(locationURI interface{}, filePath interface{}) *Client_Properties_Call

Properties is a helper method to define mock.On call

  • locationURI string
  • filePath string

func (*Client_Expecter) SetMetadata

func (_e *Client_Expecter) SetMetadata(file interface{}, metadata interface{}) *Client_SetMetadata_Call

SetMetadata is a helper method to define mock.On call

  • file vfs.File
  • metadata map[string]*string

func (*Client_Expecter) Upload

func (_e *Client_Expecter) Upload(file interface{}, content interface{}, contentType interface{}) *Client_Upload_Call

Upload is a helper method to define mock.On call

  • file vfs.File
  • content io.ReadSeeker
  • contentType string

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(strings []string, err error) *Client_List_Call

func (*Client_List_Call) Run

func (_c *Client_List_Call) Run(run func(l vfs.Location)) *Client_List_Call

func (*Client_List_Call) RunAndReturn

func (_c *Client_List_Call) RunAndReturn(run func(l vfs.Location) ([]string, error)) *Client_List_Call

type Client_Properties_Call

type Client_Properties_Call struct {
	*mock.Call
}

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

func (*Client_Properties_Call) Return

func (_c *Client_Properties_Call) Return(blobProperties *types.BlobProperties, err error) *Client_Properties_Call

func (*Client_Properties_Call) Run

func (_c *Client_Properties_Call) Run(run func(locationURI string, filePath string)) *Client_Properties_Call

func (*Client_Properties_Call) RunAndReturn

func (_c *Client_Properties_Call) RunAndReturn(run func(locationURI string, filePath string) (*types.BlobProperties, error)) *Client_Properties_Call

type Client_SetMetadata_Call

type Client_SetMetadata_Call struct {
	*mock.Call
}

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

func (*Client_SetMetadata_Call) Return

func (*Client_SetMetadata_Call) Run

func (_c *Client_SetMetadata_Call) Run(run func(file vfs.File, metadata map[string]*string)) *Client_SetMetadata_Call

func (*Client_SetMetadata_Call) RunAndReturn

func (_c *Client_SetMetadata_Call) RunAndReturn(run func(file vfs.File, metadata map[string]*string) error) *Client_SetMetadata_Call

type Client_Upload_Call

type Client_Upload_Call struct {
	*mock.Call
}

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

func (*Client_Upload_Call) Return

func (_c *Client_Upload_Call) Return(err error) *Client_Upload_Call

func (*Client_Upload_Call) Run

func (_c *Client_Upload_Call) Run(run func(file vfs.File, content io.ReadSeeker, contentType string)) *Client_Upload_Call

func (*Client_Upload_Call) RunAndReturn

func (_c *Client_Upload_Call) RunAndReturn(run func(file vfs.File, content io.ReadSeeker, contentType string) error) *Client_Upload_Call

Jump to

Keyboard shortcuts

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