NotEmptyf asserts that the specified object is NOT [Empty]. if require.NotEmptyf(t, obj, "error message %s", "formatted") { require.Equal(t, "two", obj[1]) }
(t TestingT, object interface{}, msg string, args ...interface{})
| 1534 | // require.Equal(t, "two", obj[1]) |
| 1535 | // } |
| 1536 | func NotEmptyf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 1537 | if h, ok := t.(tHelper); ok { |
| 1538 | h.Helper() |
| 1539 | } |
| 1540 | if assert.NotEmptyf(t, object, msg, args...) { |
| 1541 | return |
| 1542 | } |
| 1543 | t.FailNow() |
| 1544 | } |
| 1545 | |
| 1546 | // NotEqual asserts that the specified values are NOT equal. |
| 1547 | // |