go/src/testing/fstest/mapfs.go

type MapFS

type MapFile

var _

var _

// Open opens the named file.
func (fsys MapFS) Open(name string) (fs.File, error) {}

type fsOnly

func (fsys MapFS) ReadFile(name string) ([]byte, error) {}

func (fsys MapFS) Stat(name string) (fs.FileInfo, error) {}

func (fsys MapFS) ReadDir(name string) ([]fs.DirEntry, error) {}

func (fsys MapFS) Glob(pattern string) ([]string, error) {}

type noSub

func (noSub) Sub() {}

func (fsys MapFS) Sub(dir string) (fs.FS, error) {}

type mapFileInfo

func (i *mapFileInfo) Name() string               {}

func (i *mapFileInfo) Size() int64                {}

func (i *mapFileInfo) Mode() fs.FileMode          {}

func (i *mapFileInfo) Type() fs.FileMode          {}

func (i *mapFileInfo) ModTime() time.Time         {}

func (i *mapFileInfo) IsDir() bool                {}

func (i *mapFileInfo) Sys() any                   {}

func (i *mapFileInfo) Info() (fs.FileInfo, error) {}

func (i *mapFileInfo) String() string {}

type openMapFile

func (f *openMapFile) Stat() (fs.FileInfo, error) {}

func (f *openMapFile) Close() error {}

func (f *openMapFile) Read(b []byte) (int, error) {}

func (f *openMapFile) Seek(offset int64, whence int) (int64, error) {}

func (f *openMapFile) ReadAt(b []byte, offset int64) (int, error) {}

type mapDir

func (d *mapDir) Stat() (fs.FileInfo, error) {}

func (d *mapDir) Close() error               {}

func (d *mapDir) Read(b []byte) (int, error) {}

func (d *mapDir) ReadDir(count int) ([]fs.DirEntry, error) {}