Documentation
¶
Index ¶
- Variables
- type TestFs
- func (m *TestFs) Chmod(name string, mode os.FileMode) error
- func (m *TestFs) Chtimes(name string, atime time.Time, mtime time.Time) error
- func (m *TestFs) Create(name string) (afero.File, error)
- func (m *TestFs) Mkdir(name string, perm os.FileMode) error
- func (m *TestFs) MkdirAll(path string, perm os.FileMode) error
- func (*TestFs) Name() string
- func (m *TestFs) Open(name string) (afero.File, error)
- func (m *TestFs) OpenFile(name string, flag int, perm os.FileMode) (afero.File, error)
- func (m *TestFs) Remove(name string) error
- func (m *TestFs) RemoveAll(path string) error
- func (m *TestFs) Rename(oldname, newname string) error
- func (m *TestFs) Stat(name string) (os.FileInfo, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var Fs afero.Fs
Functions ¶
This section is empty.
Types ¶
type TestFs ¶
type TestFs struct {
BaseFs afero.Fs
MockCreate func(name string) (afero.File, error)
MockMkdir func(name string, perm os.FileMode) error
MockMkdirAll func(path string, perm os.FileMode) error
MockOpen func(name string) (afero.File, error)
MockOpenFile func(name string, flag int, perm os.FileMode) (afero.File, error)
MockRemove func(name string) error
MockRemoveAll func(path string) error
MockRename func(oldname, newname string) error
MockStat func(name string) (os.FileInfo, error)
MockChmod func(name string, mode os.FileMode) error
MockChtimes func(name string, atime time.Time, mtime time.Time) error
}
Click to show internal directories.
Click to hide internal directories.