Documentation
¶
Index ¶
- func Diff(want, got string, context int) (string, bool)
- func RequireLog(t *testing.T, dir string, bs *bytes.Buffer)
- type TestFs
- func (f *TestFs) Abs(path string) (string, error)
- func (f *TestFs) Chdir(dir string) error
- func (f *TestFs) DirectoryExistsAt(path string) bool
- func (f *TestFs) FileExists(path string) (bool, error)
- func (f *TestFs) FileExistsAt(path string) bool
- func (f *TestFs) FileReaderCalls() int
- func (f *TestFs) Getwd() (string, error)
- func (f *TestFs) Glob(relPattern string) ([]string, error)
- func (f *TestFs) ReadFile(filename string) ([]byte, error)
- func (f *TestFs) SuccessfulReads() []string
- func (f *TestFs) ToFileSystem() *ffs.FileSystem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TestFs ¶
type TestFs struct { Cwd string GlobFixtures map[string][]string DeleteFile func(string) error // contains filtered or unexported fields }
func (*TestFs) DirectoryExistsAt ¶
func (*TestFs) FileExistsAt ¶
func (*TestFs) FileReaderCalls ¶
func (*TestFs) SuccessfulReads ¶
func (*TestFs) ToFileSystem ¶ added in v0.145.4
func (f *TestFs) ToFileSystem() *ffs.FileSystem
Click to show internal directories.
Click to hide internal directories.