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{})
| 1030 | // a.Negativef(-1, "error message %s", "formatted") |
| 1031 | // a.Negativef(-1.23, "error message %s", "formatted") |
| 1032 | func (a *Assertions) Negativef(e interface{}, msg string, args ...interface{}) bool { |
| 1033 | if h, ok := a.t.(tHelper); ok { |
| 1034 | h.Helper() |
| 1035 | } |
| 1036 | return Negativef(a.t, e, msg, args...) |
| 1037 | } |
| 1038 | |
| 1039 | // Never asserts that the given condition doesn't satisfy in waitFor time, |
| 1040 | // periodically checking the target function each tick. |