NotNil asserts that the specified object is not nil. a.NotNil(err)
(object interface{}, msgAndArgs ...interface{})
| 1330 | // |
| 1331 | // a.NotNil(err) |
| 1332 | func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) bool { |
| 1333 | if h, ok := a.t.(tHelper); ok { |
| 1334 | h.Helper() |
| 1335 | } |
| 1336 | return NotNil(a.t, object, msgAndArgs...) |
| 1337 | } |
| 1338 | |
| 1339 | // NotNilf asserts that the specified object is not nil. |
| 1340 | // |