Functions
func Cmp(t TestingT, got, expected any, args ...any) boolfunc CmpError(t TestingT, got error, args ...any) boolfunc CmpFalse(t TestingT, got any, args ...any) boolfunc CmpLax(t TestingT, got, expected any, args ...any) bool(in fact the shortcut ofLaxoperator)func CmpNoError(t TestingT, got error, args ...any) boolfunc CmpNot(t TestingT, got, notExpected any, args ...any) bool(in fact the shortcut ofNotoperator)func CmpNotPanic(t TestingT, fn func(), args ...any) boolfunc CmpPanic(t TestingT, fn func(), expectedPanic any, args ...any) boolfunc CmpTrue(t TestingT, got any, args ...any) boolfunc EqDeeply(got, expected any) boolfunc EqDeeplyError(got, expected any) error
CmpDeeply()
is now replaced by
Cmp(), but it
is still available for backward compatibility purpose.
Main shortcut functions
For each of these functions, it is always a shortcut on
Cmp() and
the correponding Testdeep operator:
Each shortcut method is described in the corresponding operator page. See operators list.