Documentation
¶
Index ¶
- func Assert(tb testing.TB, condition bool, msg string, v ...interface{})
- func CreateTempDir(tb testing.TB, name string, in ...string) (string, func())
- func CreateTempFile(tb testing.TB, name string, content []byte, in ...string) (string, func())
- func CreateTempFilesInDir(tb testing.TB, name string, content []byte, in ...string) (string, func())
- func EqualDirs(tb testing.TB, dst string, src string, srcs []string)
- func Equals(tb testing.TB, want, got interface{}, v ...interface{})
- func Exists(tb testing.TB, path string)
- func Expected(tb testing.TB, got, want error)
- func NotOk(tb testing.TB, err error)
- func Ok(tb testing.TB, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTempDir ¶
CreateTempDir is a test helper to create a temporary directory, in given directory.
func CreateTempFile ¶
CreateTempFile is a test helper to create a temporary file with given name and content, in given directory.
func CreateTempFilesInDir ¶
func CreateTempFilesInDir(tb testing.TB, name string, content []byte, in ...string) (string, func())
CreateTempFilesInDir is a test helper to create temporary files using name as prefix and content, in given directory.
func EqualDirs ¶
nolint:funlen // EqualDirs fails if the contents of given directories are not the same.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.