Nilf asserts that the specified object is nil. require.Nilf(t, err, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1352 | // |
| 1353 | // require.Nilf(t, err, "error message %s", "formatted") |
| 1354 | func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1355 | if h, ok := t.(tHelper); ok { |
| 1356 | h.Helper() |
| 1357 | } |
| 1358 | if assert.Nilf(t, object, msg, args...) { |
| 1359 | return |
| 1360 | } |
| 1361 | t.FailNow() |
| 1362 | } |
| 1363 | |
| 1364 | // NoDirExists checks whether a directory does not exist in the given path. |
| 1365 | // It fails if the path points to an existing _directory_ only. |