mocks

package
v6.18.0 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	mock.Mock
}

File is an autogenerated mock type for the File type

func NewFile added in v6.4.0

func NewFile(t interface {
	mock.TestingT
	Cleanup(func())
}) *File

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

func (_m *File) Close() error

Close provides a mock function with given fields:

func (*File) CopyToFile

func (_m *File) CopyToFile(file vfs.File) error

CopyToFile provides a mock function with given fields: file

func (*File) CopyToLocation

func (_m *File) CopyToLocation(location vfs.Location) (vfs.File, error)

CopyToLocation provides a mock function with given fields: location

func (*File) Delete

func (_m *File) Delete(deleteOpts ...options.DeleteOption) error

Delete provides a mock function with given fields: deleteOpts

func (*File) EXPECT added in v6.18.0

func (_m *File) EXPECT() *File_Expecter

func (*File) Exists

func (_m *File) Exists() (bool, error)

Exists provides a mock function with given fields:

func (*File) LastModified

func (_m *File) LastModified() (*time.Time, error)

LastModified provides a mock function with given fields:

func (*File) Location

func (_m *File) Location() vfs.Location

Location provides a mock function with given fields:

func (*File) MoveToFile

func (_m *File) MoveToFile(file vfs.File) error

MoveToFile provides a mock function with given fields: file

func (*File) MoveToLocation

func (_m *File) MoveToLocation(location vfs.Location) (vfs.File, error)

MoveToLocation provides a mock function with given fields: location

func (*File) Name

func (_m *File) Name() string

Name provides a mock function with given fields:

func (*File) Path

func (_m *File) Path() string

Path provides a mock function with given fields:

func (*File) Read

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

Read provides a mock function with given fields: p

func (*File) Seek

func (_m *File) Seek(offset int64, whence int) (int64, error)

Seek provides a mock function with given fields: offset, whence

func (*File) Size

func (_m *File) Size() (uint64, error)

Size provides a mock function with given fields:

func (*File) String

func (_m *File) String() string

String provides a mock function with given fields:

func (*File) Touch

func (_m *File) Touch() error

Touch provides a mock function with given fields:

func (*File) URI

func (_m *File) URI() string

URI provides a mock function with given fields:

func (*File) Write

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

Write provides a mock function with given fields: p

type FileSystem

type FileSystem struct {
	mock.Mock
}

FileSystem is an autogenerated mock type for the FileSystem type

func NewFileSystem added in v6.18.0

func NewFileSystem(t interface {
	mock.TestingT
	Cleanup(func())
}) *FileSystem

NewFileSystem creates a new instance of FileSystem. 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 (*FileSystem) EXPECT added in v6.18.0

func (_m *FileSystem) EXPECT() *FileSystem_Expecter

func (*FileSystem) Name

func (_m *FileSystem) Name() string

Name provides a mock function with given fields:

func (*FileSystem) NewFile

func (_m *FileSystem) NewFile(volume string, absFilePath string) (vfs.File, error)

NewFile provides a mock function with given fields: volume, absFilePath

func (*FileSystem) NewLocation

func (_m *FileSystem) NewLocation(volume string, absLocPath string) (vfs.Location, error)

NewLocation provides a mock function with given fields: volume, absLocPath

func (*FileSystem) Retry

func (_m *FileSystem) Retry() vfs.Retry

Retry provides a mock function with given fields:

func (*FileSystem) Scheme

func (_m *FileSystem) Scheme() string

Scheme provides a mock function with given fields:

type FileSystem_Expecter added in v6.18.0

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

func (*FileSystem_Expecter) Name added in v6.18.0

Name is a helper method to define mock.On call

func (*FileSystem_Expecter) NewFile added in v6.18.0

func (_e *FileSystem_Expecter) NewFile(volume interface{}, absFilePath interface{}) *FileSystem_NewFile_Call

NewFile is a helper method to define mock.On call

  • volume string
  • absFilePath string

func (*FileSystem_Expecter) NewLocation added in v6.18.0

func (_e *FileSystem_Expecter) NewLocation(volume interface{}, absLocPath interface{}) *FileSystem_NewLocation_Call

NewLocation is a helper method to define mock.On call

  • volume string
  • absLocPath string

func (*FileSystem_Expecter) Retry added in v6.18.0

Retry is a helper method to define mock.On call

func (*FileSystem_Expecter) Scheme added in v6.18.0

Scheme is a helper method to define mock.On call

type FileSystem_Name_Call added in v6.18.0

type FileSystem_Name_Call struct {
	*mock.Call
}

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

func (*FileSystem_Name_Call) Return added in v6.18.0

func (*FileSystem_Name_Call) Run added in v6.18.0

func (_c *FileSystem_Name_Call) Run(run func()) *FileSystem_Name_Call

func (*FileSystem_Name_Call) RunAndReturn added in v6.18.0

func (_c *FileSystem_Name_Call) RunAndReturn(run func() string) *FileSystem_Name_Call

type FileSystem_NewFile_Call added in v6.18.0

type FileSystem_NewFile_Call struct {
	*mock.Call
}

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

func (*FileSystem_NewFile_Call) Return added in v6.18.0

func (*FileSystem_NewFile_Call) Run added in v6.18.0

func (_c *FileSystem_NewFile_Call) Run(run func(volume string, absFilePath string)) *FileSystem_NewFile_Call

func (*FileSystem_NewFile_Call) RunAndReturn added in v6.18.0

func (_c *FileSystem_NewFile_Call) RunAndReturn(run func(string, string) (vfs.File, error)) *FileSystem_NewFile_Call

type FileSystem_NewLocation_Call added in v6.18.0

type FileSystem_NewLocation_Call struct {
	*mock.Call
}

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

func (*FileSystem_NewLocation_Call) Return added in v6.18.0

func (*FileSystem_NewLocation_Call) Run added in v6.18.0

func (_c *FileSystem_NewLocation_Call) Run(run func(volume string, absLocPath string)) *FileSystem_NewLocation_Call

func (*FileSystem_NewLocation_Call) RunAndReturn added in v6.18.0

type FileSystem_Retry_Call added in v6.18.0

type FileSystem_Retry_Call struct {
	*mock.Call
}

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

func (*FileSystem_Retry_Call) Return added in v6.18.0

func (*FileSystem_Retry_Call) Run added in v6.18.0

func (_c *FileSystem_Retry_Call) Run(run func()) *FileSystem_Retry_Call

func (*FileSystem_Retry_Call) RunAndReturn added in v6.18.0

func (_c *FileSystem_Retry_Call) RunAndReturn(run func() vfs.Retry) *FileSystem_Retry_Call

type FileSystem_Scheme_Call added in v6.18.0

type FileSystem_Scheme_Call struct {
	*mock.Call
}

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

func (*FileSystem_Scheme_Call) Return added in v6.18.0

func (*FileSystem_Scheme_Call) Run added in v6.18.0

func (_c *FileSystem_Scheme_Call) Run(run func()) *FileSystem_Scheme_Call

func (*FileSystem_Scheme_Call) RunAndReturn added in v6.18.0

func (_c *FileSystem_Scheme_Call) RunAndReturn(run func() string) *FileSystem_Scheme_Call

type File_Close_Call added in v6.18.0

type File_Close_Call struct {
	*mock.Call
}

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

func (*File_Close_Call) Return added in v6.18.0

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

func (*File_Close_Call) Run added in v6.18.0

func (_c *File_Close_Call) Run(run func()) *File_Close_Call

func (*File_Close_Call) RunAndReturn added in v6.18.0

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

type File_CopyToFile_Call added in v6.18.0

type File_CopyToFile_Call struct {
	*mock.Call
}

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

func (*File_CopyToFile_Call) Return added in v6.18.0

func (*File_CopyToFile_Call) Run added in v6.18.0

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

func (*File_CopyToFile_Call) RunAndReturn added in v6.18.0

func (_c *File_CopyToFile_Call) RunAndReturn(run func(vfs.File) error) *File_CopyToFile_Call

type File_CopyToLocation_Call added in v6.18.0

type File_CopyToLocation_Call struct {
	*mock.Call
}

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

func (*File_CopyToLocation_Call) Return added in v6.18.0

func (*File_CopyToLocation_Call) Run added in v6.18.0

func (_c *File_CopyToLocation_Call) Run(run func(location vfs.Location)) *File_CopyToLocation_Call

func (*File_CopyToLocation_Call) RunAndReturn added in v6.18.0

type File_Delete_Call added in v6.18.0

type File_Delete_Call struct {
	*mock.Call
}

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

func (*File_Delete_Call) Return added in v6.18.0

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

func (*File_Delete_Call) Run added in v6.18.0

func (_c *File_Delete_Call) Run(run func(deleteOpts ...options.DeleteOption)) *File_Delete_Call

func (*File_Delete_Call) RunAndReturn added in v6.18.0

func (_c *File_Delete_Call) RunAndReturn(run func(...options.DeleteOption) error) *File_Delete_Call

type File_Exists_Call added in v6.18.0

type File_Exists_Call struct {
	*mock.Call
}

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

func (*File_Exists_Call) Return added in v6.18.0

func (_c *File_Exists_Call) Return(_a0 bool, _a1 error) *File_Exists_Call

func (*File_Exists_Call) Run added in v6.18.0

func (_c *File_Exists_Call) Run(run func()) *File_Exists_Call

func (*File_Exists_Call) RunAndReturn added in v6.18.0

func (_c *File_Exists_Call) RunAndReturn(run func() (bool, error)) *File_Exists_Call

type File_Expecter added in v6.18.0

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

func (*File_Expecter) Close added in v6.18.0

func (_e *File_Expecter) Close() *File_Close_Call

Close is a helper method to define mock.On call

func (*File_Expecter) CopyToFile added in v6.18.0

func (_e *File_Expecter) CopyToFile(file interface{}) *File_CopyToFile_Call

CopyToFile is a helper method to define mock.On call

  • file vfs.File

func (*File_Expecter) CopyToLocation added in v6.18.0

func (_e *File_Expecter) CopyToLocation(location interface{}) *File_CopyToLocation_Call

CopyToLocation is a helper method to define mock.On call

  • location vfs.Location

func (*File_Expecter) Delete added in v6.18.0

func (_e *File_Expecter) Delete(deleteOpts ...interface{}) *File_Delete_Call

Delete is a helper method to define mock.On call

  • deleteOpts ...options.DeleteOption

func (*File_Expecter) Exists added in v6.18.0

func (_e *File_Expecter) Exists() *File_Exists_Call

Exists is a helper method to define mock.On call

func (*File_Expecter) LastModified added in v6.18.0

func (_e *File_Expecter) LastModified() *File_LastModified_Call

LastModified is a helper method to define mock.On call

func (*File_Expecter) Location added in v6.18.0

func (_e *File_Expecter) Location() *File_Location_Call

Location is a helper method to define mock.On call

func (*File_Expecter) MoveToFile added in v6.18.0

func (_e *File_Expecter) MoveToFile(file interface{}) *File_MoveToFile_Call

MoveToFile is a helper method to define mock.On call

  • file vfs.File

func (*File_Expecter) MoveToLocation added in v6.18.0

func (_e *File_Expecter) MoveToLocation(location interface{}) *File_MoveToLocation_Call

MoveToLocation is a helper method to define mock.On call

  • location vfs.Location

func (*File_Expecter) Name added in v6.18.0

func (_e *File_Expecter) Name() *File_Name_Call

Name is a helper method to define mock.On call

func (*File_Expecter) Path added in v6.18.0

func (_e *File_Expecter) Path() *File_Path_Call

Path is a helper method to define mock.On call

func (*File_Expecter) Read added in v6.18.0

func (_e *File_Expecter) Read(p interface{}) *File_Read_Call

Read is a helper method to define mock.On call

  • p []byte

func (*File_Expecter) Seek added in v6.18.0

func (_e *File_Expecter) Seek(offset interface{}, whence interface{}) *File_Seek_Call

Seek is a helper method to define mock.On call

  • offset int64
  • whence int

func (*File_Expecter) Size added in v6.18.0

func (_e *File_Expecter) Size() *File_Size_Call

Size is a helper method to define mock.On call

func (*File_Expecter) String added in v6.18.0

func (_e *File_Expecter) String() *File_String_Call

String is a helper method to define mock.On call

func (*File_Expecter) Touch added in v6.18.0

func (_e *File_Expecter) Touch() *File_Touch_Call

Touch is a helper method to define mock.On call

func (*File_Expecter) URI added in v6.18.0

func (_e *File_Expecter) URI() *File_URI_Call

URI is a helper method to define mock.On call

func (*File_Expecter) Write added in v6.18.0

func (_e *File_Expecter) Write(p interface{}) *File_Write_Call

Write is a helper method to define mock.On call

  • p []byte

type File_LastModified_Call added in v6.18.0

type File_LastModified_Call struct {
	*mock.Call
}

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

func (*File_LastModified_Call) Return added in v6.18.0

func (*File_LastModified_Call) Run added in v6.18.0

func (_c *File_LastModified_Call) Run(run func()) *File_LastModified_Call

func (*File_LastModified_Call) RunAndReturn added in v6.18.0

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

type File_Location_Call added in v6.18.0

type File_Location_Call struct {
	*mock.Call
}

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

func (*File_Location_Call) Return added in v6.18.0

func (*File_Location_Call) Run added in v6.18.0

func (_c *File_Location_Call) Run(run func()) *File_Location_Call

func (*File_Location_Call) RunAndReturn added in v6.18.0

func (_c *File_Location_Call) RunAndReturn(run func() vfs.Location) *File_Location_Call

type File_MoveToFile_Call added in v6.18.0

type File_MoveToFile_Call struct {
	*mock.Call
}

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

func (*File_MoveToFile_Call) Return added in v6.18.0

func (*File_MoveToFile_Call) Run added in v6.18.0

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

func (*File_MoveToFile_Call) RunAndReturn added in v6.18.0

func (_c *File_MoveToFile_Call) RunAndReturn(run func(vfs.File) error) *File_MoveToFile_Call

type File_MoveToLocation_Call added in v6.18.0

type File_MoveToLocation_Call struct {
	*mock.Call
}

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

func (*File_MoveToLocation_Call) Return added in v6.18.0

func (*File_MoveToLocation_Call) Run added in v6.18.0

func (_c *File_MoveToLocation_Call) Run(run func(location vfs.Location)) *File_MoveToLocation_Call

func (*File_MoveToLocation_Call) RunAndReturn added in v6.18.0

type File_Name_Call added in v6.18.0

type File_Name_Call struct {
	*mock.Call
}

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

func (*File_Name_Call) Return added in v6.18.0

func (_c *File_Name_Call) Return(_a0 string) *File_Name_Call

func (*File_Name_Call) Run added in v6.18.0

func (_c *File_Name_Call) Run(run func()) *File_Name_Call

func (*File_Name_Call) RunAndReturn added in v6.18.0

func (_c *File_Name_Call) RunAndReturn(run func() string) *File_Name_Call

type File_Path_Call added in v6.18.0

type File_Path_Call struct {
	*mock.Call
}

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

func (*File_Path_Call) Return added in v6.18.0

func (_c *File_Path_Call) Return(_a0 string) *File_Path_Call

func (*File_Path_Call) Run added in v6.18.0

func (_c *File_Path_Call) Run(run func()) *File_Path_Call

func (*File_Path_Call) RunAndReturn added in v6.18.0

func (_c *File_Path_Call) RunAndReturn(run func() string) *File_Path_Call

type File_Read_Call added in v6.18.0

type File_Read_Call struct {
	*mock.Call
}

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

func (*File_Read_Call) Return added in v6.18.0

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

func (*File_Read_Call) Run added in v6.18.0

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

func (*File_Read_Call) RunAndReturn added in v6.18.0

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

type File_Seek_Call added in v6.18.0

type File_Seek_Call struct {
	*mock.Call
}

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

func (*File_Seek_Call) Return added in v6.18.0

func (_c *File_Seek_Call) Return(_a0 int64, _a1 error) *File_Seek_Call

func (*File_Seek_Call) Run added in v6.18.0

func (_c *File_Seek_Call) Run(run func(offset int64, whence int)) *File_Seek_Call

func (*File_Seek_Call) RunAndReturn added in v6.18.0

func (_c *File_Seek_Call) RunAndReturn(run func(int64, int) (int64, error)) *File_Seek_Call

type File_Size_Call added in v6.18.0

type File_Size_Call struct {
	*mock.Call
}

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

func (*File_Size_Call) Return added in v6.18.0

func (_c *File_Size_Call) Return(_a0 uint64, _a1 error) *File_Size_Call

func (*File_Size_Call) Run added in v6.18.0

func (_c *File_Size_Call) Run(run func()) *File_Size_Call

func (*File_Size_Call) RunAndReturn added in v6.18.0

func (_c *File_Size_Call) RunAndReturn(run func() (uint64, error)) *File_Size_Call

type File_String_Call added in v6.18.0

type File_String_Call struct {
	*mock.Call
}

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

func (*File_String_Call) Return added in v6.18.0

func (_c *File_String_Call) Return(_a0 string) *File_String_Call

func (*File_String_Call) Run added in v6.18.0

func (_c *File_String_Call) Run(run func()) *File_String_Call

func (*File_String_Call) RunAndReturn added in v6.18.0

func (_c *File_String_Call) RunAndReturn(run func() string) *File_String_Call

type File_Touch_Call added in v6.18.0

type File_Touch_Call struct {
	*mock.Call
}

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

func (*File_Touch_Call) Return added in v6.18.0

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

func (*File_Touch_Call) Run added in v6.18.0

func (_c *File_Touch_Call) Run(run func()) *File_Touch_Call

func (*File_Touch_Call) RunAndReturn added in v6.18.0

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

type File_URI_Call added in v6.18.0

type File_URI_Call struct {
	*mock.Call
}

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

func (*File_URI_Call) Return added in v6.18.0

func (_c *File_URI_Call) Return(_a0 string) *File_URI_Call

func (*File_URI_Call) Run added in v6.18.0

func (_c *File_URI_Call) Run(run func()) *File_URI_Call

func (*File_URI_Call) RunAndReturn added in v6.18.0

func (_c *File_URI_Call) RunAndReturn(run func() string) *File_URI_Call

type File_Write_Call added in v6.18.0

type File_Write_Call struct {
	*mock.Call
}

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

func (*File_Write_Call) Return added in v6.18.0

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

func (*File_Write_Call) Run added in v6.18.0

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

func (*File_Write_Call) RunAndReturn added in v6.18.0

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

type Location

type Location struct {
	mock.Mock
}

Location is an autogenerated mock type for the Location type

func NewLocation added in v6.4.0

func NewLocation(t interface {
	mock.TestingT
	Cleanup(func())
}) *Location

NewLocation creates a new instance of Location. 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 (*Location) ChangeDir

func (_m *Location) ChangeDir(relLocPath string) error

ChangeDir provides a mock function with given fields: relLocPath

func (*Location) DeleteFile

func (_m *Location) DeleteFile(relFilePath string, deleteOpts ...options.DeleteOption) error

DeleteFile provides a mock function with given fields: relFilePath, deleteOpts

func (*Location) EXPECT added in v6.18.0

func (_m *Location) EXPECT() *Location_Expecter

func (*Location) Exists

func (_m *Location) Exists() (bool, error)

Exists provides a mock function with given fields:

func (*Location) FileSystem

func (_m *Location) FileSystem() vfs.FileSystem

FileSystem provides a mock function with given fields:

func (*Location) List

func (_m *Location) List() ([]string, error)

List provides a mock function with given fields:

func (*Location) ListByPrefix

func (_m *Location) ListByPrefix(prefix string) ([]string, error)

ListByPrefix provides a mock function with given fields: prefix

func (*Location) ListByRegex

func (_m *Location) ListByRegex(regex *regexp.Regexp) ([]string, error)

ListByRegex provides a mock function with given fields: regex

func (*Location) NewFile

func (_m *Location) NewFile(relFilePath string) (vfs.File, error)

NewFile provides a mock function with given fields: relFilePath

func (*Location) NewLocation

func (_m *Location) NewLocation(relLocPath string) (vfs.Location, error)

NewLocation provides a mock function with given fields: relLocPath

func (*Location) Path

func (_m *Location) Path() string

Path provides a mock function with given fields:

func (*Location) String

func (_m *Location) String() string

String provides a mock function with given fields:

func (*Location) URI

func (_m *Location) URI() string

URI provides a mock function with given fields:

func (*Location) Volume

func (_m *Location) Volume() string

Volume provides a mock function with given fields:

type Location_ChangeDir_Call added in v6.18.0

type Location_ChangeDir_Call struct {
	*mock.Call
}

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

func (*Location_ChangeDir_Call) Return added in v6.18.0

func (*Location_ChangeDir_Call) Run added in v6.18.0

func (_c *Location_ChangeDir_Call) Run(run func(relLocPath string)) *Location_ChangeDir_Call

func (*Location_ChangeDir_Call) RunAndReturn added in v6.18.0

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

type Location_DeleteFile_Call added in v6.18.0

type Location_DeleteFile_Call struct {
	*mock.Call
}

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

func (*Location_DeleteFile_Call) Return added in v6.18.0

func (*Location_DeleteFile_Call) Run added in v6.18.0

func (_c *Location_DeleteFile_Call) Run(run func(relFilePath string, deleteOpts ...options.DeleteOption)) *Location_DeleteFile_Call

func (*Location_DeleteFile_Call) RunAndReturn added in v6.18.0

type Location_Exists_Call added in v6.18.0

type Location_Exists_Call struct {
	*mock.Call
}

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

func (*Location_Exists_Call) Return added in v6.18.0

func (_c *Location_Exists_Call) Return(_a0 bool, _a1 error) *Location_Exists_Call

func (*Location_Exists_Call) Run added in v6.18.0

func (_c *Location_Exists_Call) Run(run func()) *Location_Exists_Call

func (*Location_Exists_Call) RunAndReturn added in v6.18.0

func (_c *Location_Exists_Call) RunAndReturn(run func() (bool, error)) *Location_Exists_Call

type Location_Expecter added in v6.18.0

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

func (*Location_Expecter) ChangeDir added in v6.18.0

func (_e *Location_Expecter) ChangeDir(relLocPath interface{}) *Location_ChangeDir_Call

ChangeDir is a helper method to define mock.On call

  • relLocPath string

func (*Location_Expecter) DeleteFile added in v6.18.0

func (_e *Location_Expecter) DeleteFile(relFilePath interface{}, deleteOpts ...interface{}) *Location_DeleteFile_Call

DeleteFile is a helper method to define mock.On call

  • relFilePath string
  • deleteOpts ...options.DeleteOption

func (*Location_Expecter) Exists added in v6.18.0

Exists is a helper method to define mock.On call

func (*Location_Expecter) FileSystem added in v6.18.0

func (_e *Location_Expecter) FileSystem() *Location_FileSystem_Call

FileSystem is a helper method to define mock.On call

func (*Location_Expecter) List added in v6.18.0

List is a helper method to define mock.On call

func (*Location_Expecter) ListByPrefix added in v6.18.0

func (_e *Location_Expecter) ListByPrefix(prefix interface{}) *Location_ListByPrefix_Call

ListByPrefix is a helper method to define mock.On call

  • prefix string

func (*Location_Expecter) ListByRegex added in v6.18.0

func (_e *Location_Expecter) ListByRegex(regex interface{}) *Location_ListByRegex_Call

ListByRegex is a helper method to define mock.On call

  • regex *regexp.Regexp

func (*Location_Expecter) NewFile added in v6.18.0

func (_e *Location_Expecter) NewFile(relFilePath interface{}) *Location_NewFile_Call

NewFile is a helper method to define mock.On call

  • relFilePath string

func (*Location_Expecter) NewLocation added in v6.18.0

func (_e *Location_Expecter) NewLocation(relLocPath interface{}) *Location_NewLocation_Call

NewLocation is a helper method to define mock.On call

  • relLocPath string

func (*Location_Expecter) Path added in v6.18.0

Path is a helper method to define mock.On call

func (*Location_Expecter) String added in v6.18.0

String is a helper method to define mock.On call

func (*Location_Expecter) URI added in v6.18.0

URI is a helper method to define mock.On call

func (*Location_Expecter) Volume added in v6.18.0

Volume is a helper method to define mock.On call

type Location_FileSystem_Call added in v6.18.0

type Location_FileSystem_Call struct {
	*mock.Call
}

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

func (*Location_FileSystem_Call) Return added in v6.18.0

func (*Location_FileSystem_Call) Run added in v6.18.0

func (*Location_FileSystem_Call) RunAndReturn added in v6.18.0

func (_c *Location_FileSystem_Call) RunAndReturn(run func() vfs.FileSystem) *Location_FileSystem_Call

type Location_ListByPrefix_Call added in v6.18.0

type Location_ListByPrefix_Call struct {
	*mock.Call
}

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

func (*Location_ListByPrefix_Call) Return added in v6.18.0

func (*Location_ListByPrefix_Call) Run added in v6.18.0

func (*Location_ListByPrefix_Call) RunAndReturn added in v6.18.0

func (_c *Location_ListByPrefix_Call) RunAndReturn(run func(string) ([]string, error)) *Location_ListByPrefix_Call

type Location_ListByRegex_Call added in v6.18.0

type Location_ListByRegex_Call struct {
	*mock.Call
}

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

func (*Location_ListByRegex_Call) Return added in v6.18.0

func (*Location_ListByRegex_Call) Run added in v6.18.0

func (*Location_ListByRegex_Call) RunAndReturn added in v6.18.0

func (_c *Location_ListByRegex_Call) RunAndReturn(run func(*regexp.Regexp) ([]string, error)) *Location_ListByRegex_Call

type Location_List_Call added in v6.18.0

type Location_List_Call struct {
	*mock.Call
}

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

func (*Location_List_Call) Return added in v6.18.0

func (_c *Location_List_Call) Return(_a0 []string, _a1 error) *Location_List_Call

func (*Location_List_Call) Run added in v6.18.0

func (_c *Location_List_Call) Run(run func()) *Location_List_Call

func (*Location_List_Call) RunAndReturn added in v6.18.0

func (_c *Location_List_Call) RunAndReturn(run func() ([]string, error)) *Location_List_Call

type Location_NewFile_Call added in v6.18.0

type Location_NewFile_Call struct {
	*mock.Call
}

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

func (*Location_NewFile_Call) Return added in v6.18.0

func (*Location_NewFile_Call) Run added in v6.18.0

func (_c *Location_NewFile_Call) Run(run func(relFilePath string)) *Location_NewFile_Call

func (*Location_NewFile_Call) RunAndReturn added in v6.18.0

func (_c *Location_NewFile_Call) RunAndReturn(run func(string) (vfs.File, error)) *Location_NewFile_Call

type Location_NewLocation_Call added in v6.18.0

type Location_NewLocation_Call struct {
	*mock.Call
}

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

func (*Location_NewLocation_Call) Return added in v6.18.0

func (*Location_NewLocation_Call) Run added in v6.18.0

func (_c *Location_NewLocation_Call) Run(run func(relLocPath string)) *Location_NewLocation_Call

func (*Location_NewLocation_Call) RunAndReturn added in v6.18.0

type Location_Path_Call added in v6.18.0

type Location_Path_Call struct {
	*mock.Call
}

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

func (*Location_Path_Call) Return added in v6.18.0

func (_c *Location_Path_Call) Return(_a0 string) *Location_Path_Call

func (*Location_Path_Call) Run added in v6.18.0

func (_c *Location_Path_Call) Run(run func()) *Location_Path_Call

func (*Location_Path_Call) RunAndReturn added in v6.18.0

func (_c *Location_Path_Call) RunAndReturn(run func() string) *Location_Path_Call

type Location_String_Call added in v6.18.0

type Location_String_Call struct {
	*mock.Call
}

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

func (*Location_String_Call) Return added in v6.18.0

func (*Location_String_Call) Run added in v6.18.0

func (_c *Location_String_Call) Run(run func()) *Location_String_Call

func (*Location_String_Call) RunAndReturn added in v6.18.0

func (_c *Location_String_Call) RunAndReturn(run func() string) *Location_String_Call

type Location_URI_Call added in v6.18.0

type Location_URI_Call struct {
	*mock.Call
}

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

func (*Location_URI_Call) Return added in v6.18.0

func (_c *Location_URI_Call) Return(_a0 string) *Location_URI_Call

func (*Location_URI_Call) Run added in v6.18.0

func (_c *Location_URI_Call) Run(run func()) *Location_URI_Call

func (*Location_URI_Call) RunAndReturn added in v6.18.0

func (_c *Location_URI_Call) RunAndReturn(run func() string) *Location_URI_Call

type Location_Volume_Call added in v6.18.0

type Location_Volume_Call struct {
	*mock.Call
}

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

func (*Location_Volume_Call) Return added in v6.18.0

func (*Location_Volume_Call) Run added in v6.18.0

func (_c *Location_Volume_Call) Run(run func()) *Location_Volume_Call

func (*Location_Volume_Call) RunAndReturn added in v6.18.0

func (_c *Location_Volume_Call) RunAndReturn(run func() string) *Location_Volume_Call

type Options added in v6.18.0

type Options struct {
	mock.Mock
}

Options is an autogenerated mock type for the Options type

func NewOptions added in v6.18.0

func NewOptions(t interface {
	mock.TestingT
	Cleanup(func())
}) *Options

NewOptions creates a new instance of Options. 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 (*Options) EXPECT added in v6.18.0

func (_m *Options) EXPECT() *Options_Expecter

type Options_Expecter added in v6.18.0

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

type ReadWriteFile

type ReadWriteFile struct {
	File
	Reader        io.Reader
	Writer        io.Writer
	Buffer        *bytes.Buffer
	ReaderContent string
}

ReadWriteFile is a custom mock which allows the consumer to assign a custom reader and writer for easily mocking file contents.

func NewMockFromFilepath

func NewMockFromFilepath(filePath string) *ReadWriteFile

NewMockFromFilepath creates a new ReadWriteFile instance that can read a file from the provided path.

func NewStringFile

func NewStringFile(data, fileName string) *ReadWriteFile

NewStringFile creates a new ReadWriteFile instance that can be read from the provided string as it's contents.

func (*ReadWriteFile) Content

func (f *ReadWriteFile) Content() string

Content returns the data held by the ReadWriteFile struct

func (*ReadWriteFile) Read

func (f *ReadWriteFile) Read(p []byte) (n int, err error)

Read statisfieds io.Reader interface

func (*ReadWriteFile) Write

func (f *ReadWriteFile) Write(p []byte) (n int, err error)

Write statisfieds io.Writer interface

type Retry added in v6.18.0

type Retry struct {
	mock.Mock
}

Retry is an autogenerated mock type for the Retry type

func NewRetry added in v6.18.0

func NewRetry(t interface {
	mock.TestingT
	Cleanup(func())
}) *Retry

NewRetry creates a new instance of Retry. 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 (*Retry) EXPECT added in v6.18.0

func (_m *Retry) EXPECT() *Retry_Expecter

func (*Retry) Execute added in v6.18.0

func (_m *Retry) Execute(wrapped func() error) error

Execute provides a mock function with given fields: wrapped

type Retry_Execute_Call added in v6.18.0

type Retry_Execute_Call struct {
	*mock.Call
}

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

func (*Retry_Execute_Call) Return added in v6.18.0

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

func (*Retry_Execute_Call) Run added in v6.18.0

func (_c *Retry_Execute_Call) Run(run func(wrapped func() error)) *Retry_Execute_Call

func (*Retry_Execute_Call) RunAndReturn added in v6.18.0

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

type Retry_Expecter added in v6.18.0

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

func (*Retry_Expecter) Execute added in v6.18.0

func (_e *Retry_Expecter) Execute(wrapped interface{}) *Retry_Execute_Call

Execute is a helper method to define mock.On call

  • wrapped func() error

Jump to

Keyboard shortcuts

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