EventuallyWithTf asserts that given condition will be met in waitFor time, periodically checking target function each tick. In contrast to Eventually, it supplies a CollectT to the condition function, so that the condition function can use the CollectT to call other assertions. The condition is cons
(t TestingT, condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{})
| 195 | // assert.True(c, externalValue, "expected 'externalValue' to be true") |
| 196 | // }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") |
| 197 | func EventuallyWithTf(t TestingT, condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { |
| 198 | if h, ok := t.(tHelper); ok { |
| 199 | h.Helper() |
| 200 | } |
| 201 | return EventuallyWithT(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...) |
| 202 | } |
| 203 | |
| 204 | // Exactlyf asserts that two objects are equal in value and type. |
| 205 | // |
no test coverage detected