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{})
| 110 | // |
| 111 | // a.Emptyf(obj, "error message %s", "formatted") |
| 112 | func (a *Assertions) Emptyf(object interface{}, msg string, args ...interface{}) { |
| 113 | if h, ok := a.t.(tHelper); ok { |
| 114 | h.Helper() |
| 115 | } |
| 116 | Emptyf(a.t, object, msg, args...) |
| 117 | } |
| 118 | |
| 119 | // Equal asserts that two objects are equal. |
| 120 | // |