Versions in this module Expand all Collapse all v3 v3.0.6 Jan 7, 2022 v3.0.5 Jan 7, 2022 Changes in this version + func Apply(t assert.TestingT, path Path, ops ...PathOp) + func Equal(path string, expected Manifest) cmp.Comparison + func MatchAnyFileContent(path Path) error + func MatchAnyFileMode(path Path) error + func MatchContentIgnoreCarriageReturn(path Path) error + func MatchExtraFiles(path Path) error + type CompareResult interface + FailureMessage func() string + Success func() bool + type Dir struct + func DirFromPath(t assert.TestingT, path string, ops ...PathOp) *Dir + func NewDir(t assert.TestingT, prefix string, ops ...PathOp) *Dir + func (d *Dir) Join(parts ...string) string + func (d *Dir) Path() string + func (d *Dir) Remove() + type File struct + func NewFile(t assert.TestingT, prefix string, ops ...PathOp) *File + func (f *File) Path() string + func (f *File) Remove() + type Manifest struct + func Expected(t assert.TestingT, ops ...PathOp) Manifest + func ManifestFromDir(t assert.TestingT, path string) Manifest + type Path interface + Path func() string + Remove func() + type PathOp func(path Path) error + func AsUser(uid, gid int) PathOp + func FromDir(source string) PathOp + func MatchFileContent(f func([]byte) CompareResult) PathOp + func MatchFilesWithGlob(glob string, ops ...PathOp) PathOp + func WithBytes(raw []byte) PathOp + func WithContent(content string) PathOp + func WithDir(name string, ops ...PathOp) PathOp + func WithFile(filename, content string, ops ...PathOp) PathOp + func WithFiles(files map[string]string) PathOp + func WithHardlink(path, target string) PathOp + func WithMode(mode os.FileMode) PathOp + func WithReaderContent(r io.Reader) PathOp + func WithSymlink(path, target string) PathOp + func WithTimestamps(atime, mtime time.Time) PathOp Other modules containing this package github.com/DominicLavery/gotest.tools