Nil asserts that the specified object is nil. assert.Nil(t, err)
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1296 | // |
| 1297 | // assert.Nil(t, err) |
| 1298 | func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1299 | if h, ok := t.(tHelper); ok { |
| 1300 | h.Helper() |
| 1301 | } |
| 1302 | if assert.Nil(t, object, msgAndArgs...) { |
| 1303 | return |
| 1304 | } |
| 1305 | t.FailNow() |
| 1306 | } |
| 1307 | |
| 1308 | // Nilf asserts that the specified object is nil. |
| 1309 | // |