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{})
| 497 | // assert.Negativef(t, -1, "error message %s", "formatted") |
| 498 | // assert.Negativef(t, -1.23, "error message %s", "formatted") |
| 499 | func Negativef(t TestingT, e interface{}, msg string, args ...interface{}) bool { |
| 500 | if h, ok := t.(tHelper); ok { |
| 501 | h.Helper() |
| 502 | } |
| 503 | return Negative(t, e, append([]interface{}{msg}, args...)...) |
| 504 | } |
| 505 | |
| 506 | // Neverf asserts that the given condition doesn't satisfy in waitFor time, |
| 507 | // periodically checking the target function each tick. |