Negativef asserts that the specified element is negative a.Negativef(-1, "error message %s", "formatted") a.Negativef(-1.23, "error message %s", "formatted")
(e interface{}, msg string, args ...interface{})
| 992 | // a.Negativef(-1, "error message %s", "formatted") |
| 993 | // a.Negativef(-1.23, "error message %s", "formatted") |
| 994 | func (a *Assertions) Negativef(e interface{}, msg string, args ...interface{}) bool { |
| 995 | if h, ok := a.t.(tHelper); ok { |
| 996 | h.Helper() |
| 997 | } |
| 998 | return Negativef(a.t, e, msg, args...) |
| 999 | } |
| 1000 | |
| 1001 | // Never asserts that the given condition doesn't satisfy in waitFor time, |
| 1002 | // periodically checking the target function each tick. |