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{})
| 508 | // |
| 509 | // assert.Neverf(t, func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted") |
| 510 | func Neverf(t TestingT, condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { |
| 511 | if h, ok := t.(tHelper); ok { |
| 512 | h.Helper() |
| 513 | } |
| 514 | return Never(t, condition, waitFor, tick, append([]interface{}{msg}, args...)...) |
| 515 | } |
| 516 | |
| 517 | // Nilf asserts that the specified object is nil. |
| 518 | // |