Emptyf asserts that the specified object is empty. I.e. nil, "", false, 0 or either a slice or a channel with len == 0. assert.Emptyf(t, obj, "error message %s", "formatted")
(t TestingT, object interface{}, msg string, args ...interface{})
| 137 | // |
| 138 | // assert.Emptyf(t, obj, "error message %s", "formatted") |
| 139 | func Emptyf(t TestingT, object interface{}, msg string, args ...interface{}) { |
| 140 | if h, ok := t.(tHelper); ok { |
| 141 | h.Helper() |
| 142 | } |
| 143 | if assert.Emptyf(t, object, msg, args...) { |
| 144 | return |
| 145 | } |
| 146 | t.FailNow() |
| 147 | } |
| 148 | |
| 149 | // Equal asserts that two objects are equal. |
| 150 | // |