NotNil asserts that the specified object is not nil. a.NotNil(err)
(object interface{}, msgAndArgs ...interface{})
| 1244 | // |
| 1245 | // a.NotNil(err) |
| 1246 | func (a *Assertions) NotNil(object interface{}, msgAndArgs ...interface{}) { |
| 1247 | if h, ok := a.t.(tHelper); ok { |
| 1248 | h.Helper() |
| 1249 | } |
| 1250 | NotNil(a.t, object, msgAndArgs...) |
| 1251 | } |
| 1252 | |
| 1253 | // NotNilf asserts that the specified object is not nil. |
| 1254 | // |