Description

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])

}

Returns whether the assertion was successful (true) or not (false).

NotEmpty is referenced in 0 repositories