Documentation ¶
Index ¶
- Variables
- func CleanUp(t *testing.T)
- func DirContains(t *testing.T, dir string, path string) bool
- func Exists(t *testing.T, path string) bool
- func File(t *testing.T, path string, content string) afero.File
- func FileSays(t *testing.T, path string, expected []byte) bool
- func TmpDir(t *testing.T, dir string) string
- func TmpFile(t *testing.T, dir string, content string) afero.File
Constants ¶
This section is empty.
Variables ¶
View Source
var Files []string
Files keeps track of files that we've used so we can clean up.
Functions ¶
func CleanUp ¶
CleanUp removes all files in our test registry and calls `t.Error` if something goes wrong.
func DirContains ¶
DirContains returns true if the dir contains the path. Calls t.Error if something goes wrong while checking.
func Exists ¶
Exists returns true if the file exists. Calls t.Error if something goes wrong while checking.
func FileSays ¶
FileSays returns true if the file at the path contains the expected byte array content.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.