Documentation ¶
Index ¶
- type FileSystem
- func (_m *FileSystem) Chmod(name string, mode fs.FileMode) error
- func (_m *FileSystem) Copy(dst io.Writer, src io.Reader) (int64, error)
- func (_m *FileSystem) Create(name string) (*os.File, error)
- func (_m *FileSystem) Open(name string) (*os.File, error)
- func (_m *FileSystem) ReadDir(name string) ([]fs.DirEntry, error)
- func (_m *FileSystem) Stat(name string) (fs.FileInfo, error)
- type MyFileInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystem ¶
FileSystem is an autogenerated mock type for the FileSystem type
func NewFileSystem ¶
func NewFileSystem(t mockConstructorTestingTNewFileSystem) *FileSystem
NewFileSystem creates a new instance of FileSystem. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*FileSystem) Chmod ¶
func (_m *FileSystem) Chmod(name string, mode fs.FileMode) error
Chmod provides a mock function with given fields: name, mode
func (*FileSystem) Create ¶
func (_m *FileSystem) Create(name string) (*os.File, error)
Create provides a mock function with given fields: name
func (*FileSystem) Open ¶
func (_m *FileSystem) Open(name string) (*os.File, error)
Open provides a mock function with given fields: name
type MyFileInfo ¶
MyFileInfo is an autogenerated mock type for the MyFileInfo type
func NewMyFileInfo ¶
func NewMyFileInfo(t mockConstructorTestingTNewMyFileInfo) *MyFileInfo
NewMyFileInfo creates a new instance of MyFileInfo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MyFileInfo) IsDir ¶
func (_m *MyFileInfo) IsDir() bool
IsDir provides a mock function with given fields:
func (*MyFileInfo) ModTime ¶
func (_m *MyFileInfo) ModTime() time.Time
ModTime provides a mock function with given fields:
func (*MyFileInfo) Mode ¶
func (_m *MyFileInfo) Mode() fs.FileMode
Mode provides a mock function with given fields:
func (*MyFileInfo) Name ¶
func (_m *MyFileInfo) Name() string
Name provides a mock function with given fields:
func (*MyFileInfo) Size ¶
func (_m *MyFileInfo) Size() int64
Size provides a mock function with given fields:
func (*MyFileInfo) Sys ¶
func (_m *MyFileInfo) Sys() interface{}
Sys provides a mock function with given fields: