Documentation
¶
Index ¶
- func DeepEqual(t *testing.T, actual, expect any, message ...string) error
- func NotDeepEqual(t *testing.T, actual, expect any, message ...string) error
- func NotPanic(t *testing.T, fn func(), message ...string) (err error)
- func Panic(t *testing.T, fn func(), message ...string) (err error)
- type Assertion
- type AssertionError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NotDeepEqual ¶
NotDeepEqual tests deeply inequality between actual and expected parameters.
Types ¶
type Assertion ¶
type Assertion struct {
// contains filtered or unexported fields
}
func (*Assertion) NotDeepEqual ¶
NotDeepEqual tests deeply inequality between actual and expected parameters.
type AssertionError ¶
type AssertionError struct {
// contains filtered or unexported fields
}
AssertionError indicates the failure of an assertion.
func (AssertionError) Error ¶
func (err AssertionError) Error() string
Error returns the message of the error.
Click to show internal directories.
Click to hide internal directories.