NotEmpty asserts that the specified object is NOT [Empty]. if require.NotEmpty(t, obj) { require.Equal(t, "two", obj[1]) }
(t TestingT, object interface{}, msgAndArgs ...interface{})
| 1519 | // require.Equal(t, "two", obj[1]) |
| 1520 | // } |
| 1521 | func NotEmpty(t TestingT, object interface{}, msgAndArgs ...interface{}) { |
| 1522 | if h, ok := t.(tHelper); ok { |
| 1523 | h.Helper() |
| 1524 | } |
| 1525 | if assert.NotEmpty(t, object, msgAndArgs...) { |
| 1526 | return |
| 1527 | } |
| 1528 | t.FailNow() |
| 1529 | } |
| 1530 | |
| 1531 | // NotEmptyf asserts that the specified object is NOT [Empty]. |
| 1532 | // |