Neverf asserts that the given condition doesn't satisfy in waitFor time, periodically checking the target function each tick. a.Neverf(func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted")
(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{})
| 1014 | // |
| 1015 | // a.Neverf(func() bool { return false; }, time.Second, 10*time.Millisecond, "error message %s", "formatted") |
| 1016 | func (a *Assertions) Neverf(condition func() bool, waitFor time.Duration, tick time.Duration, msg string, args ...interface{}) bool { |
| 1017 | if h, ok := a.t.(tHelper); ok { |
| 1018 | h.Helper() |
| 1019 | } |
| 1020 | return Neverf(a.t, condition, waitFor, tick, msg, args...) |
| 1021 | } |
| 1022 | |
| 1023 | // Nil asserts that the specified object is nil. |
| 1024 | // |