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
(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{})
| 363 | // assert.True(c, externalValue, "expected 'externalValue' to be true") |
| 364 | // }, 10*time.Second, 1*time.Second, "external state has not changed to 'true'; still false") |
| 365 | func (a *Assertions) EventuallyWithTf(condition func(collect *CollectT), waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { |
| 366 | if h, ok := a.t.(tHelper); ok { |
| 367 | h.Helper() |
| 368 | } |
| 369 | return EventuallyWithTf(a.t, condition, waitFor, tick, msg, args...) |
| 370 | } |
| 371 | |
| 372 | // Eventuallyf asserts that given condition will be met in waitFor time, |
| 373 | // periodically checking target function each tick. |
nothing calls this directly
no test coverage detected