Documentation
¶
Index ¶
- Constants
- func CleanUpRealTestFs(testDir string)
- func CreateFile(testDir, fileDir, fileName, fileContent string)
- func DirList(fileSystem iofs.FS) string
- func DirListTree(fileSystem iofs.FS) string
- func ListFs(fs afero.Fs, path string) string
- func MakeEmptyRealTestFs() string
- func MakeEmptyTestFs() afero.Fs
- func MakeFs(dirs, files []string) afero.Fs
- func MakeRealFs(dirs, files []string) string
- func MakeRealTestFs() string
- func MakeTestFs() afero.Fs
- type ManagedDir
Constants ¶
View Source
const ( DIRSPERM = 0755 FILEPERM = 0644 )
Variables ¶
This section is empty.
Functions ¶
func CleanUpRealTestFs ¶
func CleanUpRealTestFs(testDir string)
func CreateFile ¶
func CreateFile(testDir, fileDir, fileName, fileContent string)
func DirListTree ¶
func MakeEmptyRealTestFs ¶
func MakeEmptyRealTestFs() string
func MakeEmptyTestFs ¶
func MakeRealFs ¶
func MakeRealTestFs ¶
func MakeRealTestFs() string
func MakeTestFs ¶
Types ¶
type ManagedDir ¶
type ManagedDir struct { FsOriginal afero.Fs FsSub afero.Fs // contains filtered or unexported fields }
func ManageDir ¶
func ManageDir() ManagedDir
func (*ManagedDir) CleanUp ¶
func (md *ManagedDir) CleanUp()
func (*ManagedDir) FillFile ¶
func (md *ManagedDir) FillFile(path, name, content string)
func (*ManagedDir) ListTree ¶
func (md *ManagedDir) ListTree() string
func (*ManagedDir) ListTreeOsfs ¶
func (md *ManagedDir) ListTreeOsfs() string
* NOTE: essentially does the same as ListTree().
func (*ManagedDir) Path ¶
func (md *ManagedDir) Path() string
func (*ManagedDir) SubPath ¶
func (md *ManagedDir) SubPath(path string) string
Click to show internal directories.
Click to hide internal directories.