Nilf asserts that the specified object is nil. assert.Nilf(t, err, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 1309 | // |
| 1310 | // assert.Nilf(t, err, "error message %s", "formatted") |
| 1311 | func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1312 | if h, ok := t.(tHelper); ok { |
| 1313 | h.Helper() |
| 1314 | } |
| 1315 | if assert.Nilf(t, object, msg, args...) { |
| 1316 | return |
| 1317 | } |
| 1318 | t.FailNow() |
| 1319 | } |
| 1320 | |
| 1321 | // NoDirExists checks whether a directory does not exist in the given path. |
| 1322 | // It fails if the path points to an existing _directory_ only. |