NotZero asserts that i is not the zero value for its type.
(i interface{}, msgAndArgs ...interface{})
| 1448 | |
| 1449 | // NotZero asserts that i is not the zero value for its type. |
| 1450 | func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool { |
| 1451 | if h, ok := a.t.(tHelper); ok { |
| 1452 | h.Helper() |
| 1453 | } |
| 1454 | return NotZero(a.t, i, msgAndArgs...) |
| 1455 | } |
| 1456 | |
| 1457 | // NotZerof asserts that i is not the zero value for its type. |
| 1458 | func (a *Assertions) NotZerof(i interface{}, msg string, args ...interface{}) bool { |