NotEmptyf asserts that the specified object is NOT empty. I.e. not nil, "", false, 0 or either a slice or a channel with len == 0. if a.NotEmptyf(obj, "error message %s", "formatted") { assert.Equal(t, "two", obj[1]) }
(object interface{}, msg string, args ...interface{})
| 1148 | // assert.Equal(t, "two", obj[1]) |
| 1149 | // } |
| 1150 | func (a *Assertions) NotEmptyf(object interface{}, msg string, args ...interface{}) bool { |
| 1151 | if h, ok := a.t.(tHelper); ok { |
| 1152 | h.Helper() |
| 1153 | } |
| 1154 | return NotEmptyf(a.t, object, msg, args...) |
| 1155 | } |
| 1156 | |
| 1157 | // NotEqual asserts that the specified values are NOT equal. |
| 1158 | // |