fileutil_mock

package
v0.0.0-...-a9ed6da Latest Latest
Warning

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

Go to latest
Published: May 7, 2018 License: Apache-2.0 Imports: 1 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) 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