Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Never(func() bool { return false; }, time.Second, 10*time.Millisecond)
(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})
| 1003 | // |
| 1004 | // a.Never(func() bool { return false; }, time.Second, 10*time.Millisecond) |
| 1005 | func (a *Assertions) Never(condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) bool { |
| 1006 | if h, ok := a.t.(tHelper); ok { |
| 1007 | h.Helper() |
| 1008 | } |
| 1009 | return Never(a.t, condition, waitFor, tick, msgAndArgs...) |
| 1010 | } |
| 1011 | |
| 1012 | // Neverf asserts that the given condition doesn't satisfy in waitFor time, |
| 1013 | // periodically checking the target function each tick. |