fs_mocks

package
v0.0.0-...-8fdffdb Latest Latest
Warning

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

Go to latest
Published: May 31, 2021 License: Apache-2.0 Imports: 5 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 (*File) Close

func (_m *File) Close() error

Close provides a mock function with given fields:

func (*File) Write

func (_m *File) Write(_a0 []byte) error

Write provides a mock function with given fields: _a0

type FileReader

type FileReader struct {
	mock.Mock
}

FileReader is an autogenerated mock type for the FileReader type

func (*FileReader) Open

func (_m *FileReader) Open(name string) (http.File, error)

Open provides a mock function with given fields: name

func (*FileReader) Read

func (_m *FileReader) Read(path string) ([]byte, error)

Read provides a mock function with given fields: path

func (*FileReader) Stat

func (_m *FileReader) Stat(path string) (os.FileInfo, error)

Stat provides a mock function with given fields: path

type FileWriter

type FileWriter struct {
	mock.Mock
}

FileWriter is an autogenerated mock type for the FileWriter type

func (*FileWriter) Open

func (_m *FileWriter) Open(path string, mask int, permissions os.FileMode) (fs.File, error)

Open provides a mock function with given fields: path, mask, permissions

func (*FileWriter) Write

func (_m *FileWriter) Write(path string, contents string, permissions os.FileMode) error

Write provides a mock function with given fields: path, contents, permissions

type PathMatcher

type PathMatcher struct {
	mock.Mock
}

PathMatcher is an autogenerated mock type for the PathMatcher type

func (*PathMatcher) MatchFiles

func (_m *PathMatcher) MatchFiles(changes []vcs.FileChange, includes []string, excludes []string, filesystem *fs.FileSystem) []vcs.FileChange

MatchFiles provides a mock function with given fields: changes, includes, excludes, filesystem

func (*PathMatcher) ScanAllFiles

func (_m *PathMatcher) ScanAllFiles(includes []string, excludes []string, filesystem *fs.FileSystem) ([]vcs.FileChange, error)

ScanAllFiles provides a mock function with given fields: includes, excludes, filesystem

Jump to

Keyboard shortcuts

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