Nilf asserts that the specified object is nil. assert.Nilf(t, err, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 537 | // |
| 538 | // assert.Nilf(t, err, "error message %s", "formatted") |
| 539 | func Nilf(t TestingT, object interface{}, msg string, args ...interface{}) bool { |
| 540 | if h, ok := t.(tHelper); ok { |
| 541 | h.Helper() |
| 542 | } |
| 543 | return Nil(t, object, append([]interface{}{msg}, args...)...) |
| 544 | } |
| 545 | |
| 546 | // NoDirExistsf checks whether a directory does not exist in the given path. |
| 547 | // It fails if the path points to an existing _directory_ only. |