Documentation
      ¶
    
    
  
    
      Index ¶
- func CheckDirectoryEqual(d1, d2 string) error
 - func CheckDirectoryEqualWithApplier(root string, a Applier) error
 - func FSSuite(t *testing.T, a TestApplier)
 - type Applier
 - func Apply(appliers ...Applier) Applier
 - func Chmod(name string, perm os.FileMode) Applier
 - func Chown(name string, uid, gid int) Applier
 - func Chtimes(name string, atime, mtime time.Time) Applier
 - func CreateDir(name string, perm os.FileMode) Applier
 - func CreateFile(name string, content []byte, perm os.FileMode) Applier
 - func Lchtimes(name string, atime, mtime time.Time) Applier
 - func Link(oldname, newname string) Applier
 - func Remove(name string) Applier
 - func RemoveAll(name string) Applier
 - func Rename(old, new string) Applier
 - func SetXAttr(name, key, value string) Applier
 - func Symlink(oldname, newname string) Applier
 
- type TestApplier
 
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDirectoryEqual ¶
CheckDirectoryEqual compares two directory paths to make sure that the content of the directories is the same.
func CheckDirectoryEqualWithApplier ¶
CheckDirectoryEqualWithApplier compares directory against applier
Types ¶
type Applier ¶
Applier applies single file changes
func CreateDir ¶
CreateDir returns a file applier to create the directory with the provided name and permission
func CreateFile ¶
CreateFile returns a file applier which creates a file as the provided name with the given content and permission.
func RemoveAll ¶
RemoveAll returns a file applier which removes the provided file name as in os.RemoveAll
 Click to show internal directories. 
   Click to hide internal directories.