Negativef asserts that the specified element is negative assert.Negativef(t, -1, "error message %s", "formatted") assert.Negativef(t, -1.23, "error message %s", "formatted")
(t TestingT, e interface{}, msg string, args ...interface{})
| 1255 | // assert.Negativef(t, -1, "error message %s", "formatted") |
| 1256 | // assert.Negativef(t, -1.23, "error message %s", "formatted") |
| 1257 | func Negativef(t TestingT, e interface{}, msg string, args ...interface{}) { |
| 1258 | if h, ok := t.(tHelper); ok { |
| 1259 | h.Helper() |
| 1260 | } |
| 1261 | if assert.Negativef(t, e, msg, args...) { |
| 1262 | return |
| 1263 | } |
| 1264 | t.FailNow() |
| 1265 | } |
| 1266 | |
| 1267 | // Never asserts that the given condition doesn't satisfy in waitFor time, |
| 1268 | // periodically checking the target function each tick. |