Documentation
¶
Index ¶
- func RequireLog(t *testing.T, dir string, bs *bytes.Buffer)
- type SyncWriter
- 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 SyncWriter ¶ added in v1.2.0
type SyncWriter struct {
// contains filtered or unexported fields
}
SyncWriter wraps an io.Writer to make it safe for concurrent use.
func NewSyncWriter ¶ added in v1.2.0
func NewSyncWriter(w io.Writer) *SyncWriter
NewSyncWriter creates a new thread-safe writer.
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.