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{})
| 55 | // |
| 56 | // assert.Emptyf(t, obj, "error message %s", "formatted") |
| 57 | func Emptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool { |
| 58 | if h, ok := t.(tHelper); ok { |
| 59 | h.Helper() |
| 60 | } |
| 61 | return Empty(t, object, append([]interface{}{msg}, args...)...) |
| 62 | } |
| 63 | |
| 64 | // Equalf asserts that two objects are equal. |
| 65 | // |