Emptyf asserts that the given value is "empty". [Zero values] are "empty". Arrays are "empty" if every element is the zero value of the type (stricter than "empty"). Slices, maps and channels with zero length are "empty". Pointer values are "empty" if the pointer is nil or if the pointed value i
(t TestingT, object interface{}, msg string, args ...interface{})
| 64 | // |
| 65 | // [Zero values]: https://go.dev/ref/spec#The_zero_value |
| 66 | func Emptyf(t TestingT, object interface{}, msg string, args ...interface{}) bool { |
| 67 | if h, ok := t.(tHelper); ok { |
| 68 | h.Helper() |
| 69 | } |
| 70 | return Empty(t, object, append([]interface{}{msg}, args...)...) |
| 71 | } |
| 72 | |
| 73 | // Equalf asserts that two objects are equal. |
| 74 | // |