Documentation
¶
Index ¶
- type MockFS
- func (m *MockFS) Lstat(name string) (fs.FileInfo, error)
- func (m *MockFS) MkdirAll(path string, perm fs.FileMode) error
- func (m *MockFS) ReadDir(name string) ([]fs.DirEntry, error)
- func (m *MockFS) ReadFile(name string) ([]byte, error)
- func (m *MockFS) Readlink(name string) (string, error)
- func (m *MockFS) Remove(name string) error
- func (m *MockFS) RemoveAll(path string) error
- func (m *MockFS) Stat(name string) (fs.FileInfo, error)
- func (m *MockFS) Symlink(oldname, newname string) error
- func (m *MockFS) WriteFile(name string, data []byte, perm fs.FileMode) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockFS ¶
MockFS is a mock filesystem implementation for testing It's based on fstest.MapFS and provides a simple in-memory filesystem
Click to show internal directories.
Click to hide internal directories.