Documentation ¶
Index ¶
- func EqualError(a, b error) bool
- func ExpectError(t *testing.T, want, got error) bool
- func ListFiles(t *testing.T, dir string)
- func MustPrepareTestFiles(t *testing.T, files []testtools.FileSpec) (tmpDir string, filenames []string, clean func())
- func MustReadAndPrepareTestFiles(t *testing.T, files []testtools.FileSpec) (tmpDir string, filenames []string, clean func())
- func MustReadTestFile(t *testing.T, dir string, filename string) string
- func MustWriteTestFiles(t *testing.T, tmpDir string, files []testtools.FileSpec) []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EqualError ¶
EqualError reports whether errors a and b are considered equal. They're equal if both are nil, or both are not nil and a.Error() == b.Error().
func ExpectError ¶
ExpectError asserts that the errors are equal. Return value is true if the "want" argument is non-nil.
func MustPrepareTestFiles ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.