Documentation ¶
Index ¶
- Variables
- func Equal(t testing.TB, first, second interface{}, msg string, args ...interface{})
- func False(t testing.TB, obj interface{}, msg string, args ...interface{})
- func Nil(t testing.TB, obj interface{}, msg string, args ...interface{})
- func NotEqual(t testing.TB, first, second interface{}, msg string, args ...interface{})
- func NotNil(t testing.TB, obj interface{}, msg string, args ...interface{})
- func RegisterOpts(t reflect.Type, opts ...cmp.Option)
- func RunWithTimeout(callback func() error, timeout time.Duration) error
- func True(t testing.TB, obj interface{}, msg string, args ...interface{})
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCallbackTimedOut = errors.New("callback timed out")
Functions ¶
func Equal ¶
Equal compares first and second for equality. The objects must be of the same type. If the objects are not equal, the test will be failed with an error message containing msg and args.
func NotEqual ¶
NotEqual compares first and second for inequality. The objects must be of the same type.
func RegisterOpts ¶
RegisterOpts registers go-cmp options for a type. These options will be used when comparing two objects for equality.
func RunWithTimeout ¶ added in v1.3.5
RunWithTimeout runs the provided callback for a maximum of timeoutMS milliseconds. It returns the callback error if the callback returned and ErrCallbackTimedOut if the timeout expired.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.