NotEmpty asserts that the specified object is NOT [Empty]. if a.NotEmpty(obj) { assert.Equal(t, "two", obj[1]) }
(object interface{}, msgAndArgs ...interface{})
| 1206 | // assert.Equal(t, "two", obj[1]) |
| 1207 | // } |
| 1208 | func (a *Assertions) NotEmpty(object interface{}, msgAndArgs ...interface{}) bool { |
| 1209 | if h, ok := a.t.(tHelper); ok { |
| 1210 | h.Helper() |
| 1211 | } |
| 1212 | return NotEmpty(a.t, object, msgAndArgs...) |
| 1213 | } |
| 1214 | |
| 1215 | // NotEmptyf asserts that the specified object is NOT [Empty]. |
| 1216 | // |