Zerof asserts that i is the zero value for its type.
(t TestingT, i interface{}, msg string, args ...interface{})
| 2029 | |
| 2030 | // Zerof asserts that i is the zero value for its type. |
| 2031 | func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) { |
| 2032 | if h, ok := t.(tHelper); ok { |
| 2033 | h.Helper() |
| 2034 | } |
| 2035 | if assert.Zerof(t, i, msg, args...) { |
| 2036 | return |
| 2037 | } |
| 2038 | t.FailNow() |
| 2039 | } |