Documentation
¶
Overview ¶
Package fakefs provides a fake file system implementation for testing.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeFileInfo ¶
type FakeFileInfo struct { FileName string FileSize int64 FileMode fs.FileMode FileModTime time.Time }
FakeFileInfo is a fake implementation of fs.FileInfo.
func (FakeFileInfo) IsDir ¶
func (i FakeFileInfo) IsDir() bool
IsDir returns true if the file is a directory.
func (FakeFileInfo) ModTime ¶
func (i FakeFileInfo) ModTime() time.Time
ModTime returns the modification time of the file.
func (FakeFileInfo) Mode ¶
func (i FakeFileInfo) Mode() fs.FileMode
Mode returns the mode of the file.
func (FakeFileInfo) Sys ¶
func (i FakeFileInfo) Sys() any
Sys is an implementation of FileInfo.Sys() that returns nothing (nil).
Click to show internal directories.
Click to hide internal directories.