Documentation
¶
Index ¶
- func WaitCondition(t *testing.T, final bool, comp assert.Comparison, msgAndArgs ...interface{}) bool
- func WaitEqual(t *testing.T, final bool, expected, actual interface{}, ...) bool
- func WaitFor(t *testing.T, desc string, timeout time.Duration, ...) error
- func WaitForComp(t *testing.T, desc string, timeout time.Duration, cond assert.Comparison) error
- func WaitNil(t *testing.T, final bool, object interface{}, msgAndArgs ...interface{}) bool
- func WaitNotEqual(t *testing.T, final bool, expected, actual interface{}, ...) bool
- func WaitNotNil(t *testing.T, final bool, object interface{}, msgAndArgs ...interface{}) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitCondition ¶
func WaitCondition(t *testing.T, final bool, comp assert.Comparison, msgAndArgs ...interface{}) bool
returns true if the comparison is true. If final is true, also asserts that that the comparison is true
func WaitEqual ¶
func WaitEqual(t *testing.T, final bool, expected, actual interface{}, msgAndArgs ...interface{}) bool
returns true if the objects are equal. If final is true, also asserts that they are equal to the test interface
func WaitFor ¶
func WaitFor(t *testing.T, desc string, timeout time.Duration, testFunc func(bool) (bool, error)) error
Wait for the predicate to become true by testing it repeatedly on a timer. Asserts a failure if the predicate does not become true before the timeout
func WaitForComp ¶
Wait for the given condition to become true
func WaitNil ¶
returns true if the object is nil. If final is true, also asserts that that the object is nil.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.