NotZerof asserts that i is not the zero value for its type.
(t TestingT, i interface{}, msg string, args ...interface{})
| 682 | |
| 683 | // NotZerof asserts that i is not the zero value for its type. |
| 684 | func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) bool { |
| 685 | if h, ok := t.(tHelper); ok { |
| 686 | h.Helper() |
| 687 | } |
| 688 | return NotZero(t, i, append([]interface{}{msg}, args...)...) |
| 689 | } |
| 690 | |
| 691 | // Panicsf asserts that the code inside the specified PanicTestFunc panics. |
| 692 | // |