Documentation ¶
Index ¶
- func DeepEqual(t checkmate.TestingT, actual, expected any, msgAndArgs ...any) bool
- func Equal(t checkmate.TestingT, actual, expected any, msgAndArgs ...any) bool
- func ErrorContains(t checkmate.TestingT, err error, errText string, msgAndArgs ...any) bool
- func ErrorIs(t checkmate.TestingT, err error, target error, msgAndArgs ...any) bool
- func False(t checkmate.TestingT, condition bool, msgAndArgs ...any) bool
- func Nil(t checkmate.TestingT, value any, msgAndArgs ...any) bool
- func NotDeepEqual(t checkmate.TestingT, actual, expected any, msgAndArgs ...any) bool
- func NotEqual(t checkmate.TestingT, actual, expected any, msgAndArgs ...any) bool
- func NotErrorContains(t checkmate.TestingT, err error, errText string, msgAndArgs ...any) bool
- func NotErrorIs(t checkmate.TestingT, err error, target error, msgAndArgs ...any) bool
- func NotNil(t checkmate.TestingT, value any, msgAndArgs ...any) bool
- func True(t checkmate.TestingT, condition bool, msgAndArgs ...any) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEqual ¶
DeepEqual checks if two values are deeply equal. If they are not equal, it logs the differences.
func ErrorContains ¶
ErrorContains checks whether the given err contains the errText in the err.Error() output.
func NotDeepEqual ¶
NotDeepEqual checks if two values are not deeply equal.
func NotEqual ¶
NotEqual checks if two values are not equal. It fails the test if the values are equal.
func NotErrorContains ¶
NotErrorContains checks whether the given err does not contain the errText in the err.Error() output.
func NotErrorIs ¶
NotErrorIs checks whether the target error does not occur within the err's error tree.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.