Documentation ¶
Index ¶
- func Equal(expected, actual interface{}, msgAndArgs ...interface{})
- func Error(err error, msgAndArgs ...interface{})
- func EventuallyWithRetry(t *testing.T, attempts int, sleep time.Duration, f func() error, ...)
- func Fail(failureMessage string, msgAndArgs ...interface{})
- func False(value bool, msgAndArgs ...interface{})
- func NoError(err error, msgAndArgs ...interface{})
- func NotEmpty(o interface{}, msgAndArgs ...interface{})
- func NotEqual(expected, actual interface{}, msgAndArgs ...interface{})
- func NotNil(object interface{}, msgAndArgs ...interface{})
- func Retry(attempts int, sleep time.Duration, f func() error) (err error)
- func True(value bool, msgAndArgs ...interface{})
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Equal ¶
func Equal(expected, actual interface{}, msgAndArgs ...interface{})
Equal checks that actual is as expected, it panics otherwise
func Error ¶
func Error(err error, msgAndArgs ...interface{})
Error checks that the passed error is not nil, it panics otherwise
func EventuallyWithRetry ¶
func EventuallyWithRetry(t *testing.T, attempts int, sleep time.Duration, f func() error, msgAndArgs ...interface{})
EventuallyWithRetry will call the function provided, and asserts that the function returns with no error within the provided number of attempts.
func NoError ¶
func NoError(err error, msgAndArgs ...interface{})
NoError checks that the passed error is nil, it panics otherwise
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.