Zerof asserts that i is the zero value for its type.
(t TestingT, i interface{}, msg string, args ...interface{})
| 859 | |
| 860 | // Zerof asserts that i is the zero value for its type. |
| 861 | func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool { |
| 862 | if h, ok := t.(tHelper); ok { |
| 863 | h.Helper() |
| 864 | } |
| 865 | return Zero(t, i, append([]interface{}{msg}, args...)...) |
| 866 | } |