Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. a.Emptyf(obj, "error message %s", "formatted")
(object interface{}, msg string, args ...interface{})
| 108 | // |
| 109 | // a.Emptyf(obj, "error message %s", "formatted") |
| 110 | func (a *Assertions) Emptyf(object interface{}, msg string, args ...interface{}) bool { |
| 111 | if h, ok := a.t.(tHelper); ok { |
| 112 | h.Helper() |
| 113 | } |
| 114 | return Emptyf(a.t, object, msg, args...) |
| 115 | } |
| 116 | |
| 117 | // Equal asserts that two objects are equal. |
| 118 | // |