Documentation ¶
Index ¶
- type Entry
- type File
- func (p File) Add(path string, e Entry) error
- func (p File) IsDir() bool
- func (p File) Lstat(path string, stat *syscall.Stat_t) error
- func (File) ModTime() time.Time
- func (File) Mode() os.FileMode
- func (p File) Name() string
- func (p File) Open(path string) (io.ReadWriteCloser, error)
- func (p File) ReadDir(path string) ([]os.FileInfo, error)
- func (p File) ReadDirNames(path string) ([]string, error)
- func (p File) ReadFile(path string) ([]byte, error)
- func (p File) Remove(path string) error
- func (File) Size() int64
- func (p File) Stat(path string, stat *syscall.Stat_t) error
- func (File) Sys() interface{}
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry interface { os.FileInfo fs.Interface Add(path string, e Entry) error Remove(path string) error }
Entry is an entry in the mock filesystem
type File ¶
type File struct { FName string FContents string FReader io.Reader FWriter io.Writer FCloser io.Closer FStat syscall.Stat_t // contains filtered or unexported fields }
File is a mock file
func (File) ReadDirNames ¶
ReadDirNames implements FS
Click to show internal directories.
Click to hide internal directories.