Versions in this module Expand all Collapse all v1 v1.0.1 May 21, 2018 v1.0.0 May 21, 2018 Changes in this version + type FakeFS struct + func MakeFakeFS() *FakeFS + func (fs *FakeFS) Create(name string) (File, error) + func (fs *FakeFS) Mkdir(name string, perm os.FileMode) error + func (fs *FakeFS) Open(name string) (File, error) + func (fs *FakeFS) ReadFile(name string) ([]byte, error) + func (fs *FakeFS) Stat(name string) (os.FileInfo, error) + func (fs *FakeFS) WriteFile(name string, c []byte) error + type FakeFile struct + func (f *FakeFile) Close() error + func (f *FakeFile) ContentMatches(v []byte) bool + func (f *FakeFile) GetContent() []byte + func (f *FakeFile) Read(p []byte) (n int, err error) + func (f *FakeFile) Stat() (os.FileInfo, error) + func (f *FakeFile) Write(p []byte) (n int, err error) + type Fakefileinfo struct + func (fi *Fakefileinfo) IsDir() bool + func (fi *Fakefileinfo) ModTime() time.Time + func (fi *Fakefileinfo) Mode() os.FileMode + func (fi *Fakefileinfo) Name() string + func (fi *Fakefileinfo) Size() int64 + func (fi *Fakefileinfo) Sys() interface{} + type File interface + Stat func() (os.FileInfo, error) + func MakeRealFile(f *os.File) (File, error) + type FileSystem interface + Create func(name string) (File, error) + Mkdir func(name string, perm os.FileMode) error + Open func(name string) (File, error) + ReadFile func(name string) ([]byte, error) + Stat func(name string) (os.FileInfo, error) + WriteFile func(name string, data []byte) error + func MakeRealFS() FileSystem