NotEmptyf asserts that the specified object is NOT [Empty]. if assert.NotEmptyf(t, obj, "error message %s", "formatted") { assert.Equal(t, "two", obj[1]) }
(t TestingT, object interface{}, msg string, args ...interface{})
| 610 | // assert.Equal(t, "two", obj[1]) |
| 611 | // } |
| 612 | func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool { |
| 613 | if h, ok := t.(tHelper); ok { |
| 614 | h.Helper() |
| 615 | } |
| 616 | return NotEmpty(t, object, append([]interface{}{msg}, args...)...) |
| 617 | } |
| 618 | |
| 619 | // NotEqualf asserts that the specified values are NOT equal. |
| 620 | // |