Zerof asserts that i is the zero value for its type.
(t TestingT, i interface{}, msg string, args ...interface{})
| 2170 | |
| 2171 | // Zerof asserts that i is the zero value for its type. |
| 2172 | func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) { |
| 2173 | if h, ok := t.(tHelper); ok { |
| 2174 | h.Helper() |
| 2175 | } |
| 2176 | if assert.Zerof(t, i, msg, args...) { |
| 2177 | return |
| 2178 | } |
| 2179 | t.FailNow() |
| 2180 | } |