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{})
| 1453 | // assert.Equal(t, "two", obj[1]) |
| 1454 | // } |
| 1455 | func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1456 | if h, ok := t.(tHelper); ok { |
| 1457 | h.Helper() |
| 1458 | } |
| 1459 | if assert.NotEmptyf(t, object, msg, args...) { |
| 1460 | return |
| 1461 | } |
| 1462 | t.FailNow() |
| 1463 | } |
| 1464 | |
| 1465 | // NotEqual asserts that the specified values are NOT equal. |
| 1466 | // |