Documentation
¶
Index ¶
- type File
- func (_m *File) Close() error
- func (_m *File) CopyToFile(file vfs.File) error
- func (_m *File) CopyToLocation(location vfs.Location) (vfs.File, error)
- func (_m *File) Delete(deleteOpts ...options.DeleteOption) error
- func (_m *File) EXPECT() *File_Expecter
- func (_m *File) Exists() (bool, error)
- func (_m *File) LastModified() (*time.Time, error)
- func (_m *File) Location() vfs.Location
- func (_m *File) MoveToFile(file vfs.File) error
- func (_m *File) MoveToLocation(location vfs.Location) (vfs.File, error)
- func (_m *File) Name() string
- func (_m *File) Path() string
- func (_m *File) Read(p []byte) (int, error)
- func (_m *File) Seek(offset int64, whence int) (int64, error)
- func (_m *File) Size() (uint64, error)
- func (_m *File) String() string
- func (_m *File) Touch() error
- func (_m *File) URI() string
- func (_m *File) Write(p []byte) (int, error)
- type FileSystem
- func (_m *FileSystem) EXPECT() *FileSystem_Expecter
- func (_m *FileSystem) Name() string
- func (_m *FileSystem) NewFile(volume string, absFilePath string) (vfs.File, error)
- func (_m *FileSystem) NewLocation(volume string, absLocPath string) (vfs.Location, error)
- func (_m *FileSystem) Retry() vfs.Retry
- func (_m *FileSystem) Scheme() string
- type FileSystem_Expecter
- func (_e *FileSystem_Expecter) Name() *FileSystem_Name_Call
- func (_e *FileSystem_Expecter) NewFile(volume interface{}, absFilePath interface{}) *FileSystem_NewFile_Call
- func (_e *FileSystem_Expecter) NewLocation(volume interface{}, absLocPath interface{}) *FileSystem_NewLocation_Call
- func (_e *FileSystem_Expecter) Retry() *FileSystem_Retry_Call
- func (_e *FileSystem_Expecter) Scheme() *FileSystem_Scheme_Call
- type FileSystem_Name_Call
- type FileSystem_NewFile_Call
- func (_c *FileSystem_NewFile_Call) Return(_a0 vfs.File, _a1 error) *FileSystem_NewFile_Call
- func (_c *FileSystem_NewFile_Call) Run(run func(volume string, absFilePath string)) *FileSystem_NewFile_Call
- func (_c *FileSystem_NewFile_Call) RunAndReturn(run func(string, string) (vfs.File, error)) *FileSystem_NewFile_Call
- type FileSystem_NewLocation_Call
- func (_c *FileSystem_NewLocation_Call) Return(_a0 vfs.Location, _a1 error) *FileSystem_NewLocation_Call
- func (_c *FileSystem_NewLocation_Call) Run(run func(volume string, absLocPath string)) *FileSystem_NewLocation_Call
- func (_c *FileSystem_NewLocation_Call) RunAndReturn(run func(string, string) (vfs.Location, error)) *FileSystem_NewLocation_Call
- type FileSystem_Retry_Call
- type FileSystem_Scheme_Call
- type File_Close_Call
- type File_CopyToFile_Call
- type File_CopyToLocation_Call
- func (_c *File_CopyToLocation_Call) Return(_a0 vfs.File, _a1 error) *File_CopyToLocation_Call
- func (_c *File_CopyToLocation_Call) Run(run func(location vfs.Location)) *File_CopyToLocation_Call
- func (_c *File_CopyToLocation_Call) RunAndReturn(run func(vfs.Location) (vfs.File, error)) *File_CopyToLocation_Call
- type File_Delete_Call
- type File_Exists_Call
- type File_Expecter
- func (_e *File_Expecter) Close() *File_Close_Call
- func (_e *File_Expecter) CopyToFile(file interface{}) *File_CopyToFile_Call
- func (_e *File_Expecter) CopyToLocation(location interface{}) *File_CopyToLocation_Call
- func (_e *File_Expecter) Delete(deleteOpts ...interface{}) *File_Delete_Call
- func (_e *File_Expecter) Exists() *File_Exists_Call
- func (_e *File_Expecter) LastModified() *File_LastModified_Call
- func (_e *File_Expecter) Location() *File_Location_Call
- func (_e *File_Expecter) MoveToFile(file interface{}) *File_MoveToFile_Call
- func (_e *File_Expecter) MoveToLocation(location interface{}) *File_MoveToLocation_Call
- func (_e *File_Expecter) Name() *File_Name_Call
- func (_e *File_Expecter) Path() *File_Path_Call
- func (_e *File_Expecter) Read(p interface{}) *File_Read_Call
- func (_e *File_Expecter) Seek(offset interface{}, whence interface{}) *File_Seek_Call
- func (_e *File_Expecter) Size() *File_Size_Call
- func (_e *File_Expecter) String() *File_String_Call
- func (_e *File_Expecter) Touch() *File_Touch_Call
- func (_e *File_Expecter) URI() *File_URI_Call
- func (_e *File_Expecter) Write(p interface{}) *File_Write_Call
- type File_LastModified_Call
- type File_Location_Call
- type File_MoveToFile_Call
- type File_MoveToLocation_Call
- func (_c *File_MoveToLocation_Call) Return(_a0 vfs.File, _a1 error) *File_MoveToLocation_Call
- func (_c *File_MoveToLocation_Call) Run(run func(location vfs.Location)) *File_MoveToLocation_Call
- func (_c *File_MoveToLocation_Call) RunAndReturn(run func(vfs.Location) (vfs.File, error)) *File_MoveToLocation_Call
- type File_Name_Call
- type File_Path_Call
- type File_Read_Call
- type File_Seek_Call
- type File_Size_Call
- type File_String_Call
- type File_Touch_Call
- type File_URI_Call
- type File_Write_Call
- type Location
- func (_m *Location) ChangeDir(relLocPath string) error
- func (_m *Location) DeleteFile(relFilePath string, deleteOpts ...options.DeleteOption) error
- func (_m *Location) EXPECT() *Location_Expecter
- func (_m *Location) Exists() (bool, error)
- func (_m *Location) FileSystem() vfs.FileSystem
- func (_m *Location) List() ([]string, error)
- func (_m *Location) ListByPrefix(prefix string) ([]string, error)
- func (_m *Location) ListByRegex(regex *regexp.Regexp) ([]string, error)
- func (_m *Location) NewFile(relFilePath string) (vfs.File, error)
- func (_m *Location) NewLocation(relLocPath string) (vfs.Location, error)
- func (_m *Location) Path() string
- func (_m *Location) String() string
- func (_m *Location) URI() string
- func (_m *Location) Volume() string
- type Location_ChangeDir_Call
- type Location_DeleteFile_Call
- func (_c *Location_DeleteFile_Call) Return(_a0 error) *Location_DeleteFile_Call
- func (_c *Location_DeleteFile_Call) Run(run func(relFilePath string, deleteOpts ...options.DeleteOption)) *Location_DeleteFile_Call
- func (_c *Location_DeleteFile_Call) RunAndReturn(run func(string, ...options.DeleteOption) error) *Location_DeleteFile_Call
- type Location_Exists_Call
- type Location_Expecter
- func (_e *Location_Expecter) ChangeDir(relLocPath interface{}) *Location_ChangeDir_Call
- func (_e *Location_Expecter) DeleteFile(relFilePath interface{}, deleteOpts ...interface{}) *Location_DeleteFile_Call
- func (_e *Location_Expecter) Exists() *Location_Exists_Call
- func (_e *Location_Expecter) FileSystem() *Location_FileSystem_Call
- func (_e *Location_Expecter) List() *Location_List_Call
- func (_e *Location_Expecter) ListByPrefix(prefix interface{}) *Location_ListByPrefix_Call
- func (_e *Location_Expecter) ListByRegex(regex interface{}) *Location_ListByRegex_Call
- func (_e *Location_Expecter) NewFile(relFilePath interface{}) *Location_NewFile_Call
- func (_e *Location_Expecter) NewLocation(relLocPath interface{}) *Location_NewLocation_Call
- func (_e *Location_Expecter) Path() *Location_Path_Call
- func (_e *Location_Expecter) String() *Location_String_Call
- func (_e *Location_Expecter) URI() *Location_URI_Call
- func (_e *Location_Expecter) Volume() *Location_Volume_Call
- type Location_FileSystem_Call
- type Location_ListByPrefix_Call
- func (_c *Location_ListByPrefix_Call) Return(_a0 []string, _a1 error) *Location_ListByPrefix_Call
- func (_c *Location_ListByPrefix_Call) Run(run func(prefix string)) *Location_ListByPrefix_Call
- func (_c *Location_ListByPrefix_Call) RunAndReturn(run func(string) ([]string, error)) *Location_ListByPrefix_Call
- type Location_ListByRegex_Call
- func (_c *Location_ListByRegex_Call) Return(_a0 []string, _a1 error) *Location_ListByRegex_Call
- func (_c *Location_ListByRegex_Call) Run(run func(regex *regexp.Regexp)) *Location_ListByRegex_Call
- func (_c *Location_ListByRegex_Call) RunAndReturn(run func(*regexp.Regexp) ([]string, error)) *Location_ListByRegex_Call
- type Location_List_Call
- type Location_NewFile_Call
- type Location_NewLocation_Call
- func (_c *Location_NewLocation_Call) Return(_a0 vfs.Location, _a1 error) *Location_NewLocation_Call
- func (_c *Location_NewLocation_Call) Run(run func(relLocPath string)) *Location_NewLocation_Call
- func (_c *Location_NewLocation_Call) RunAndReturn(run func(string) (vfs.Location, error)) *Location_NewLocation_Call
- type Location_Path_Call
- type Location_String_Call
- type Location_URI_Call
- type Location_Volume_Call
- type Options
- type Options_Expecter
- type ReadWriteFile
- type Retry
- type Retry_Execute_Call
- type Retry_Expecter
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type File ¶
File is an autogenerated mock type for the File type
func NewFile ¶ added in v6.4.0
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) CopyToFile ¶
CopyToFile provides a mock function with given fields: file
func (*File) CopyToLocation ¶
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) LastModified ¶
LastModified provides a mock function with given fields:
func (*File) MoveToFile ¶
MoveToFile provides a mock function with given fields: file
func (*File) MoveToLocation ¶
MoveToLocation provides a mock function with given fields: location
type FileSystem ¶
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 ¶
NewFile provides a mock function with given fields: volume, absFilePath
func (*FileSystem) NewLocation ¶
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
func (_e *FileSystem_Expecter) Name() *FileSystem_Name_Call
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
func (_e *FileSystem_Expecter) Retry() *FileSystem_Retry_Call
Retry is a helper method to define mock.On call
func (*FileSystem_Expecter) Scheme ¶ added in v6.18.0
func (_e *FileSystem_Expecter) Scheme() *FileSystem_Scheme_Call
Scheme is a helper method to define mock.On call
type FileSystem_Name_Call ¶ added in v6.18.0
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 (_c *FileSystem_Name_Call) Return(_a0 string) *FileSystem_Name_Call
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
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 (_c *FileSystem_NewFile_Call) Return(_a0 vfs.File, _a1 error) *FileSystem_NewFile_Call
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
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 (_c *FileSystem_NewLocation_Call) Return(_a0 vfs.Location, _a1 error) *FileSystem_NewLocation_Call
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
func (_c *FileSystem_NewLocation_Call) RunAndReturn(run func(string, string) (vfs.Location, error)) *FileSystem_NewLocation_Call
type FileSystem_Retry_Call ¶ added in v6.18.0
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 (_c *FileSystem_Retry_Call) Return(_a0 vfs.Retry) *FileSystem_Retry_Call
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
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 (_c *FileSystem_Scheme_Call) Return(_a0 string) *FileSystem_Scheme_Call
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
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
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 (_c *File_CopyToFile_Call) Return(_a0 error) *File_CopyToFile_Call
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
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 (_c *File_CopyToLocation_Call) Return(_a0 vfs.File, _a1 error) *File_CopyToLocation_Call
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
func (_c *File_CopyToLocation_Call) RunAndReturn(run func(vfs.Location) (vfs.File, error)) *File_CopyToLocation_Call
type File_Delete_Call ¶ added in v6.18.0
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
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
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 (_c *File_LastModified_Call) Return(_a0 *time.Time, _a1 error) *File_LastModified_Call
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
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 (_c *File_Location_Call) Return(_a0 vfs.Location) *File_Location_Call
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
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 (_c *File_MoveToFile_Call) Return(_a0 error) *File_MoveToFile_Call
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
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 (_c *File_MoveToLocation_Call) Return(_a0 vfs.File, _a1 error) *File_MoveToLocation_Call
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
func (_c *File_MoveToLocation_Call) RunAndReturn(run func(vfs.Location) (vfs.File, error)) *File_MoveToLocation_Call
type File_Name_Call ¶ added in v6.18.0
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
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
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
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
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
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
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
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
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 ¶
Location is an autogenerated mock type for the Location type
func NewLocation ¶ added in v6.4.0
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) 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) FileSystem ¶
func (_m *Location) FileSystem() vfs.FileSystem
FileSystem provides a mock function with given fields:
func (*Location) ListByPrefix ¶
ListByPrefix provides a mock function with given fields: prefix
func (*Location) ListByRegex ¶
ListByRegex provides a mock function with given fields: regex
func (*Location) NewLocation ¶
NewLocation provides a mock function with given fields: relLocPath
type Location_ChangeDir_Call ¶ added in v6.18.0
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 (_c *Location_ChangeDir_Call) Return(_a0 error) *Location_ChangeDir_Call
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
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 (_c *Location_DeleteFile_Call) Return(_a0 error) *Location_DeleteFile_Call
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
func (_c *Location_DeleteFile_Call) RunAndReturn(run func(string, ...options.DeleteOption) error) *Location_DeleteFile_Call
type Location_Exists_Call ¶ added in v6.18.0
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
func (_e *Location_Expecter) Exists() *Location_Exists_Call
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
func (_e *Location_Expecter) List() *Location_List_Call
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
func (_e *Location_Expecter) Path() *Location_Path_Call
Path is a helper method to define mock.On call
func (*Location_Expecter) String ¶ added in v6.18.0
func (_e *Location_Expecter) String() *Location_String_Call
String is a helper method to define mock.On call
func (*Location_Expecter) URI ¶ added in v6.18.0
func (_e *Location_Expecter) URI() *Location_URI_Call
URI is a helper method to define mock.On call
func (*Location_Expecter) Volume ¶ added in v6.18.0
func (_e *Location_Expecter) Volume() *Location_Volume_Call
Volume is a helper method to define mock.On call
type Location_FileSystem_Call ¶ added in v6.18.0
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 (_c *Location_FileSystem_Call) Return(_a0 vfs.FileSystem) *Location_FileSystem_Call
func (*Location_FileSystem_Call) Run ¶ added in v6.18.0
func (_c *Location_FileSystem_Call) Run(run func()) *Location_FileSystem_Call
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
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 (_c *Location_ListByPrefix_Call) Return(_a0 []string, _a1 error) *Location_ListByPrefix_Call
func (*Location_ListByPrefix_Call) Run ¶ added in v6.18.0
func (_c *Location_ListByPrefix_Call) Run(run func(prefix string)) *Location_ListByPrefix_Call
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
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 (_c *Location_ListByRegex_Call) Return(_a0 []string, _a1 error) *Location_ListByRegex_Call
func (*Location_ListByRegex_Call) Run ¶ added in v6.18.0
func (_c *Location_ListByRegex_Call) Run(run func(regex *regexp.Regexp)) *Location_ListByRegex_Call
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
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
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 (_c *Location_NewFile_Call) Return(_a0 vfs.File, _a1 error) *Location_NewFile_Call
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
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 (_c *Location_NewLocation_Call) Return(_a0 vfs.Location, _a1 error) *Location_NewLocation_Call
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
func (_c *Location_NewLocation_Call) RunAndReturn(run func(string) (vfs.Location, error)) *Location_NewLocation_Call
type Location_Path_Call ¶ added in v6.18.0
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
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 (_c *Location_String_Call) Return(_a0 string) *Location_String_Call
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
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
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 (_c *Location_Volume_Call) Return(_a0 string) *Location_Volume_Call
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
Options is an autogenerated mock type for the Options type
func NewOptions ¶ added in v6.18.0
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
type Retry ¶ added in v6.18.0
Retry is an autogenerated mock type for the Retry type
func NewRetry ¶ added in v6.18.0
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
type Retry_Execute_Call ¶ added in v6.18.0
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