Zero asserts that i is the zero value for its type.
(i interface{}, msgAndArgs ...interface{})
| 1592 | |
| 1593 | // Zero asserts that i is the zero value for its type. |
| 1594 | func (a *Assertions) Zero(i interface{}, msgAndArgs ...interface{}) { |
| 1595 | if h, ok := a.t.(tHelper); ok { |
| 1596 | h.Helper() |
| 1597 | } |
| 1598 | Zero(a.t, i, msgAndArgs...) |
| 1599 | } |
| 1600 | |
| 1601 | // Zerof asserts that i is the zero value for its type. |
| 1602 | func (a *Assertions) Zerof(i interface{}, msg string, args ...interface{}) { |