NotZero asserts that i is not the zero value for its type.
(i interface{}, msgAndArgs ...interface{})
| 1406 | |
| 1407 | // NotZero asserts that i is not the zero value for its type. |
| 1408 | func (a *Assertions) NotZero(i interface{}, msgAndArgs ...interface{}) bool { |
| 1409 | if h, ok := a.t.(tHelper); ok { |
| 1410 | h.Helper() |
| 1411 | } |
| 1412 | return NotZero(a.t, i, msgAndArgs...) |
| 1413 | } |
| 1414 | |
| 1415 | // NotZerof asserts that i is not the zero value for its type. |
| 1416 | func (a *Assertions) NotZerof(i interface{}, msg string, args ...interface{}) bool { |