fs

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FS

type FS interface {
	ReadFile(filename string) ([]byte, error)
	WriteFile(filename string, data []byte, perm os.FileMode) error
	Exists(path string) (bool, error)
	TempDir(dir string, prefix string) (string, error)
	Remove(path string) error
}

func NewOS

func NewOS() FS

type MockFS

type MockFS struct {
	mock.Mock
}

MockFS is an autogenerated mock type for the FS type

func (*MockFS) Exists

func (_m *MockFS) Exists(path string) (bool, error)

Exists provides a mock function with given fields: path

func (*MockFS) ReadFile

func (_m *MockFS) ReadFile(filename string) ([]byte, error)

ReadFile provides a mock function with given fields: filename

func (*MockFS) Remove

func (_m *MockFS) Remove(path string) error

Remove provides a mock function with given fields: path

func (*MockFS) TempDir

func (_m *MockFS) TempDir(dir string, prefix string) (string, error)

TempDir provides a mock function with given fields: dir, prefix

func (*MockFS) WriteFile

func (_m *MockFS) WriteFile(filename string, data []byte, perm os.FileMode) error

WriteFile provides a mock function with given fields: filename, data, perm

Jump to

Keyboard shortcuts

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