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 assert.NotEmptyf(t, obj, "error message %s", "formatted") { assert.Equal(t, "two", obj[1]) }
(t TestingT, object interface{}, msg string, args ...interface{})
| 575 | // assert.Equal(t, "two", obj[1]) |
| 576 | // } |
| 577 | func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool { |
| 578 | if h, ok := t.(tHelper); ok { |
| 579 | h.Helper() |
| 580 | } |
| 581 | return NotEmpty(t, object, append([]interface{}{msg}, args...)...) |
| 582 | } |
| 583 | |
| 584 | // NotEqualf asserts that the specified values are NOT equal. |
| 585 | // |