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{})
| 516 | // assert.Negativef(t, -1, "error message %s", "formatted") |
| 517 | // assert.Negativef(t, -1.23, "error message %s", "formatted") |
| 518 | func Negativef(t TestingT, e interface{}, msg string, args ...interface{}) bool { |
| 519 | if h, ok := t.(tHelper); ok { |
| 520 | h.Helper() |
| 521 | } |
| 522 | return Negative(t, e, append([]interface{}{msg}, args...)...) |
| 523 | } |
| 524 | |
| 525 | // Neverf asserts that the given condition doesn't satisfy in waitFor time, |
| 526 | // periodically checking the target function each tick. |