Empty asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. a.Empty(obj)
(object interface{}, msgAndArgs ...interface{})
| 97 | // |
| 98 | // a.Empty(obj) |
| 99 | func (a *Assertions) Empty(object interface{}, msgAndArgs ...interface{}) bool { |
| 100 | if h, ok := a.t.(tHelper); ok { |
| 101 | h.Helper() |
| 102 | } |
| 103 | return Empty(a.t, object, msgAndArgs...) |
| 104 | } |
| 105 | |
| 106 | // Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either |
| 107 | // a slice or a channel with len == 0. |