Documentation
¶
Index ¶
- func AssertErrorIs(t *testing.T, err error, wantError error)
- func AssertErrorMatchesAll(t *testing.T, err error, wantError []error)
- func AssertErrorMessage(t *testing.T, err error, wantMsg string, opts ...assertOptions)
- func AssertOneOfErrorMessages(t *testing.T, err error, wantMsgs []string)
- func TrimWhitespace() assertOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertErrorMatchesAll ¶
AssertErrorMatchesAll verifies that err contains all of the errors in wantError in its tree.
func AssertErrorMessage ¶
AssertErrorMessage asserts that err.Error() is equal to wantMsg.
func AssertOneOfErrorMessages ¶
AssertOneOfErrorMessages asserts that err.Error() is in wantMsgs.
func TrimWhitespace ¶
func TrimWhitespace() assertOptions
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.