Versions in this module Expand all Collapse all v0 v0.17.19 May 19, 2023 Changes in this version + func AfterFileClose() + func BeforeFileOpen() + func CheckIfWindows() bool + func MkdirAll(fs FS, path string, perm os.FileMode) error + func ParseYarnPnPVirtualPath(path string) (string, string, bool) + type DifferentCase struct + Actual string + Dir string + Query string + type DirEntries struct + func MakeEmptyDirEntries(dir string) DirEntries + func (entries DirEntries) Get(query string) (*Entry, *DifferentCase) + func (entries DirEntries) PeekEntryCount() int + func (entries DirEntries) SortedKeys() (keys []string) + type Entry struct + func (e *Entry) Kind(fs FS) EntryKind + func (e *Entry) Symlink(fs FS) string + type EntryKind uint8 + const DirEntry + const FileEntry + type FS interface + Abs func(path string) (string, bool) + Base func(path string) string + Cwd func() string + Dir func(path string) string + Ext func(path string) string + IsAbs func(path string) bool + Join func(parts ...string) string + ModKey func(path string) (ModKey, error) + OpenFile func(path string) (result OpenedFile, canonicalError error, originalError error) + ReadDirectory func(path string) (entries DirEntries, canonicalError error, originalError error) + ReadFile func(path string) (contents string, canonicalError error, originalError error) + Rel func(base string, target string) (string, bool) + WatchData func() WatchData + func MockFS(input map[string]string, kind MockKind, absWorkingDir string) FS + func RealFS(options RealFSOptions) (FS, error) + type InMemoryOpenedFile struct + Contents []byte + func (f *InMemoryOpenedFile) Close() error + func (f *InMemoryOpenedFile) Len() int + func (f *InMemoryOpenedFile) Read(start int, end int) ([]byte, error) + type MockKind uint8 + const MockUnix + const MockWindows + type ModKey struct + type OpenedFile interface + Close func() error + Len func() int + Read func(start int, end int) ([]byte, error) + type RealFSOptions struct + AbsWorkingDir string + DoNotCache bool + WantWatchData bool + type WatchData struct + Paths map[string]func() string