Nil asserts that the specified object is nil. require.Nil(t, err)
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1339 | // |
| 1340 | // require.Nil(t, err) |
| 1341 | func Nil(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1342 | if h, ok := t.(tHelper); ok { |
| 1343 | h.Helper() |
| 1344 | } |
| 1345 | if assert.Nil(t, object, msgAndArgs...) { |
| 1346 | return |
| 1347 | } |
| 1348 | t.FailNow() |
| 1349 | } |
| 1350 | |
| 1351 | // Nilf asserts that the specified object is nil. |
| 1352 | // |