Neverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})
| 1283 | // |
| 1284 | // assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted") |
| 1285 | func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) { |
| 1286 | if h, ok := t.(tHelper); ok { |
| 1287 | h.Helper() |
| 1288 | } |
| 1289 | if assert.Neverf(t, condition, waitFor, tick, msg, args...) { |
| 1290 | return |
| 1291 | } |
| 1292 | t.FailNow() |
| 1293 | } |
| 1294 | |
| 1295 | // Nil asserts that the specified object is nil. |
| 1296 | // |