fileutil_mock

package
v0.0.0-...-955c50f Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package fileutil_mock has mock functions for filemanager package

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileSystemMock

type FileSystemMock struct {
	mock.Mock
}

func (*FileSystemMock) AppendToFile

func (fileMock *FileSystemMock) AppendToFile(fileDirectory string, filename string, content string) (filePath string, err error)

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)

func (*FileSystemMock) ReadFile

func (fileMock *FileSystemMock) ReadFile(filename string) (string, error)

func (*FileSystemMock) WriteFile

func (fileMock *FileSystemMock) WriteFile(filename string, content string) error

Jump to

Keyboard shortcuts

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