Never asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. assert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond)
(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{})
| 1269 | // |
| 1270 | // assert.Never(t, func() bool { return false; }, time.Second, 10*time.Millisecond) |
| 1271 | func Never(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msgAndArgs ...interface{}) { |
| 1272 | if h, ok := t.(tHelper); ok { |
| 1273 | h.Helper() |
| 1274 | } |
| 1275 | if assert.Never(t, condition, waitFor, tick, msgAndArgs...) { |
| 1276 | return |
| 1277 | } |
| 1278 | t.FailNow() |
| 1279 | } |
| 1280 | |
| 1281 | // Neverf asserts that the given condition doesn't satisfy in waitFor time, |
| 1282 | // periodically checking the target function each tick. |