NotEmpty 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.NotEmpty(t, obj) { assert.Equal(t, "two", obj[1]) }
(t TestingT, object interface{}, msgAndArgs ...interface{})