Versions in this module Expand all Collapse all v0 v0.2.0 Aug 24, 2022 Changes in this version + var ErrFileNameEmpty = errors.New("file name is empty") + var ErrInvalidFileMode = errors.New("invalid file mode") + var ErrInvalidFileTreeFormat = errors.New("invalid file tree format") + func DirExists(t TestingT, fs afero.Fs, path string, msgAndArgs ...interface{}) bool + func Exists(t TestingT, fs afero.Fs, path string, msgAndArgs ...interface{}) bool + func FileContent(t TestingT, fs afero.Fs, path string, expected string, ...) bool + func FileContentRegexp(t TestingT, fs afero.Fs, path string, expected interface{}, ...) bool + func FileExists(t TestingT, fs afero.Fs, path string, msgAndArgs ...interface{}) bool + func FileModeFromUint64(mode uint64) *os.FileMode + func FileModePtr(mode os.FileMode) *os.FileMode + func NoDirExists(t TestingT, fs afero.Fs, path string, msgAndArgs ...interface{}) bool + func NoExists(t TestingT, fs afero.Fs, path string, msgAndArgs ...interface{}) bool + func NoFileExists(t TestingT, fs afero.Fs, path string, msgAndArgs ...interface{}) bool + func Perm(t TestingT, fs afero.Fs, path string, expected os.FileMode, ...) bool + func TreeContains(t TestingT, fs afero.Fs, tree FileTree, path string, msgAndArgs ...interface{}) bool + func TreeEqual(t TestingT, fs afero.Fs, tree FileTree, path string, msgAndArgs ...interface{}) bool + func YAMLTreeContains(t TestingT, fs afero.Fs, expected, path string, msgAndArgs ...interface{}) bool + func YAMLTreeEqual(t TestingT, fs afero.Fs, expected, path string, msgAndArgs ...interface{}) bool + type FileModeTags map[string]*os.FileMode + func (t FileModeTags) Mode() *os.FileMode + func (t FileModeTags) Perm() *os.FileMode + func (t FileModeTags) String() string + func (t FileModeTags) Type() *os.FileMode + type FileNode struct + Children FileTree + Name string + Tags FileModeTags + func (n *FileNode) UnmarshalYAML(value *yaml.Node) error + func (n FileNode) Flatten(root string) map[string]FileNode + func (n FileNode) MarshalYAML() (interface{}, error) + type FileTree map[string]FileNode + func (t *FileTree) UnmarshalYAML(value *yaml.Node) error + func (t FileTree) Flatten(root string) map[string]FileNode + func (t FileTree) MarshalYAML() (interface{}, error) + type TestingT interface + Errorf func(format string, args ...interface{})