Zerof asserts that i is the zero value for its type.
(t TestingT, i interface{}, msg string, args ...interface{})
| 800 | |
| 801 | // Zerof asserts that i is the zero value for its type. |
| 802 | func Zerof(t TestingT, i interface{}, msg string, args ...interface{}) bool { |
| 803 | if h, ok := t.(tHelper); ok { |
| 804 | h.Helper() |
| 805 | } |
| 806 | return Zero(t, i, append([]interface{}{msg}, args...)...) |
| 807 | } |