Nilf asserts that the specified object is nil. assert.Nilf(t, err, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 518 | // |
| 519 | // assert.Nilf(t, err, "error message %s", "formatted") |
| 520 | func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) bool { |
| 521 | if h, ok := t.(tHelper); ok { |
| 522 | h.Helper() |
| 523 | } |
| 524 | return Nil(t, object, append([]interface{}{msg}, args...)...) |
| 525 | } |
| 526 | |
| 527 | // NoDirExistsf checks whether a directory does not exist in the given path. |
| 528 | // It fails if the path points to an existing _directory_ only. |