NotNil asserts that the specified object is not nil. assert.NotNil(t, err)
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1574 | // |
| 1575 | // assert.NotNil(t, err) |
| 1576 | func NotNil(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1577 | if h, ok := t.(tHelper); ok { |
| 1578 | h.Helper() |
| 1579 | } |
| 1580 | if assert.NotNil(t, object, msgAndArgs...) { |
| 1581 | return |
| 1582 | } |
| 1583 | t.FailNow() |
| 1584 | } |
| 1585 | |
| 1586 | // NotNilf asserts that the specified object is not nil. |
| 1587 | // |
searching dependent graphs…