Zero asserts that i is the zero value for its type.
(i interface{}, msgAndArgs ...interface{})
| 1708 | |
| 1709 | // Zero asserts that i is the zero value for its type. |
| 1710 | func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) bool { |
| 1711 | if h, ok := a.t.(tHelper); ok { |
| 1712 | h.Helper() |
| 1713 | } |
| 1714 | return Zero(a.t, i, msgAndArgs...) |
| 1715 | } |
| 1716 | |
| 1717 | // Zerof asserts that i is the zero value for its type. |
| 1718 | func (a *Assertions) Zerof(i interface{}, msg string, args ...interface{}) bool { |