Documentation ¶
Overview ¶
Package fileutil_mock has mock functions for filemanager package
Index ¶
- type FileSystemMock
- func (fileMock *FileSystemMock) AppendToFile(fileDirectory string, filename string, content string) (filePath string, err error)
- func (fileMock *FileSystemMock) CreateFile(name string) (file *os.File, err error)
- func (fileMock *FileSystemMock) CreateTempDir(dir, prefix string) (name string, err error)
- func (fileMock *FileSystemMock) DeleteDirectory(fileName string) (err error)
- func (fileMock *FileSystemMock) DeleteFile(fileName string) (err error)
- func (fileMock *FileSystemMock) Exists(root string) bool
- func (fileMock *FileSystemMock) IsDirectory(root string) bool
- func (fileMock *FileSystemMock) MakeDirs(destinationDir string) (err error)
- func (fileMock *FileSystemMock) MoveAndRenameFile(sourcePath, sourceName, destPath, destName string) (result bool, err error)
- func (fileMock *FileSystemMock) ReadFile(filename string) (string, error)
- func (fileMock *FileSystemMock) WriteFile(filename string, content string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystemMock ¶
func (*FileSystemMock) AppendToFile ¶
func (*FileSystemMock) CreateFile ¶
func (fileMock *FileSystemMock) CreateFile(name string) (file *os.File, err error)
func (*FileSystemMock) CreateTempDir ¶
func (fileMock *FileSystemMock) CreateTempDir(dir, prefix string) (name string, err error)
func (*FileSystemMock) DeleteDirectory ¶
func (fileMock *FileSystemMock) DeleteDirectory(fileName string) (err error)
func (*FileSystemMock) DeleteFile ¶
func (fileMock *FileSystemMock) DeleteFile(fileName string) (err error)
func (*FileSystemMock) Exists ¶
func (fileMock *FileSystemMock) Exists(root string) bool
func (*FileSystemMock) IsDirectory ¶
func (fileMock *FileSystemMock) IsDirectory(root string) bool
func (*FileSystemMock) MakeDirs ¶
func (fileMock *FileSystemMock) MakeDirs(destinationDir string) (err error)
func (*FileSystemMock) MoveAndRenameFile ¶
func (fileMock *FileSystemMock) MoveAndRenameFile(sourcePath, sourceName, destPath, destName string) (result bool, err error)
Click to show internal directories.
Click to hide internal directories.