Nilf asserts that the specified object is nil. a.Nilf(err, "error message %s", "formatted")
(object interface{}, msg string, args ...interface{})
| 1034 | // |
| 1035 | // a.Nilf(err, "error message %s", "formatted") |
| 1036 | func (a *Assertions) Nilf(object interface{}, msg string, args ...interface{}) bool { |
| 1037 | if h, ok := a.t.(tHelper); ok { |
| 1038 | h.Helper() |
| 1039 | } |
| 1040 | return Nilf(a.t, object, msg, args...) |
| 1041 | } |
| 1042 | |
| 1043 | // NoDirExists checks whether a directory does not exist in the given path. |
| 1044 | // It fails if the path points to an existing _directory_ only. |