fakefs

package
v0.27.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScanFileList

func ScanFileList(name string, dateFormat string) ([]fs.FS, error)

func ScanFileListReader

func ScanFileListReader(f io.Reader, dateFormat string) ([]fs.FS, error)

func ScanStringList

func ScanStringList(dateFormat string, s string) ([]fs.FS, error)

Types

type FakeDirEntry

type FakeDirEntry struct {
	// contains filtered or unexported fields
}

func (FakeDirEntry) Info

func (fi FakeDirEntry) Info() (fs.FileInfo, error)

func (FakeDirEntry) IsDir

func (fi FakeDirEntry) IsDir() bool

func (FakeDirEntry) ModTime

func (fi FakeDirEntry) ModTime() time.Time

func (FakeDirEntry) Mode

func (fi FakeDirEntry) Mode() fs.FileMode

func (FakeDirEntry) Name

func (fi FakeDirEntry) Name() string

func (FakeDirEntry) Size

func (fi FakeDirEntry) Size() int64

func (FakeDirEntry) Sys

func (fi FakeDirEntry) Sys() any

func (FakeDirEntry) Type

func (fi FakeDirEntry) Type() fs.FileMode

type FakeFS

type FakeFS struct {
	// contains filtered or unexported fields
}

func (FakeFS) Name

func (fsys FakeFS) Name() string

func (FakeFS) Open

func (fsys FakeFS) Open(name string) (fs.File, error)

func (FakeFS) ReadDir

func (fsys FakeFS) ReadDir(name string) ([]fs.DirEntry, error)

func (FakeFS) Stat

func (fsys FakeFS) Stat(name string) (fs.FileInfo, error)

type FakeFile

type FakeFile struct {
	// contains filtered or unexported fields
}

func (*FakeFile) Close

func (f *FakeFile) Close() error

func (*FakeFile) Read

func (f *FakeFile) Read(b []byte) (int, error)

func (FakeFile) Stat

func (f FakeFile) Stat() (fs.FileInfo, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL