Documentation
¶
Index ¶
- type FileManager
- func (_m *FileManager) Open(path string) (*os.File, error)
- func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
- func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
- func (_m *FileManager) Remove(path string) error
- func (_m *FileManager) RemoveAll(path string) error
- func (_m *FileManager) Write(path string, value string, perm fs.FileMode) error
- func (_m *FileManager) WriteBytes(path string, value []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileManager ¶
FileManager is an autogenerated mock type for the FileManager type
func NewFileManager ¶
func NewFileManager(t mockConstructorTestingTNewFileManager) *FileManager
NewFileManager creates a new instance of FileManager. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileManager) Open ¶
func (_m *FileManager) Open(path string) (*os.File, error)
Open provides a mock function with given fields: path
func (*FileManager) OpenReaderIfExists ¶
func (_m *FileManager) OpenReaderIfExists(path string) (io.Reader, error)
OpenReaderIfExists provides a mock function with given fields: path
func (*FileManager) ReadDirEntryNames ¶
func (_m *FileManager) ReadDirEntryNames(path string) ([]string, error)
ReadDirEntryNames provides a mock function with given fields: path
func (*FileManager) Remove ¶
func (_m *FileManager) Remove(path string) error
Remove provides a mock function with given fields: path
func (*FileManager) RemoveAll ¶
func (_m *FileManager) RemoveAll(path string) error
RemoveAll provides a mock function with given fields: path
func (*FileManager) WriteBytes ¶
func (_m *FileManager) WriteBytes(path string, value []byte) error
WriteBytes provides a mock function with given fields: path, value
Click to show internal directories.
Click to hide internal directories.