Documentation ¶
Index ¶
- func AssertError(t *testing.T, err error, expectedErrors ...error) bool
- func AssertErrorDescription(t *testing.T, err error, expectedErrorDescriptions ...string) bool
- func RequireError(t *testing.T, err error, expectedErrors ...error)
- func RequireErrorDescription(t *testing.T, err error, expectedErrorDescriptions ...string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertError ¶
AssertError asserts that the error is matching one of the `expectedErrors` This is a wrapper for commonerrors.Any.
func AssertErrorDescription ¶ added in v1.42.0
AssertErrorDescription asserts that the error description corresponds to one of the `expectedErrorDescriptions` This is a wrapper for commonerrors.CorrespondTo.
func RequireError ¶
RequireError requires that the error is matching one of the `expectedErrors` This is a wrapper for commonerrors.Any.
func RequireErrorDescription ¶ added in v1.42.0
RequireErrorDescription requires that the error description corresponds to one of the `expectedErrorDescriptions` This is a wrapper for commonerrors.CorrespondTo.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.