NotNilf asserts that the specified object is not nil. assert.NotNilf(t, err, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1587 | // |
| 1588 | // assert.NotNilf(t, err, "error message %s", "formatted") |
| 1589 | func NotNilf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1590 | if h, ok := t.(tHelper); ok { |
| 1591 | h.Helper() |
| 1592 | } |
| 1593 | if assert.NotNilf(t, object, msg, args...) { |
| 1594 | return |
| 1595 | } |
| 1596 | t.FailNow() |
| 1597 | } |
| 1598 | |
| 1599 | // NotPanics asserts that the code inside the specified PanicTestFunc does NOT panic. |
| 1600 | // |