Documentation
¶
Index ¶
- func DeepEqual(loggerFn assertionLoggerFn, expected, actual interface{}, msg ...string)
- func Equal(loggerFn assertionLoggerFn, expected, actual interface{}, msg ...string)
- func ErrorContains(loggerFn assertionLoggerFn, want string, err error, msg ...string)
- func NoError(loggerFn assertionLoggerFn, err error, msg ...string)
- func NotNil(loggerFn assertionLoggerFn, obj interface{}, msg ...string)
- type AssertionTestingTB
- type TBMock
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeepEqual ¶
func DeepEqual(loggerFn assertionLoggerFn, expected, actual interface{}, msg ...string)
DeepEqual compares values using DeepEqual.
func Equal ¶
func Equal(loggerFn assertionLoggerFn, expected, actual interface{}, msg ...string)
Equal compares values using comparison operator.
func ErrorContains ¶
ErrorContains asserts that actual error contains wanted message.
Types ¶
type AssertionTestingTB ¶
type AssertionTestingTB interface { Errorf(format string, args ...interface{}) Fatalf(format string, args ...interface{}) }
AssertionTestingTB exposes enough testing.TB methods for assertions.
Click to show internal directories.
Click to hide internal directories.