NotZerof asserts that i is not the zero value for its type.
(t TestingT, i interface{}, msg string, args ...interface{})
| 1727 | |
| 1728 | // NotZerof asserts that i is not the zero value for its type. |
| 1729 | func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) { |
| 1730 | if h, ok := t.(tHelper); ok { |
| 1731 | h.Helper() |
| 1732 | } |
| 1733 | if assert.NotZerof(t, i, msg, args...) { |
| 1734 | return |
| 1735 | } |
| 1736 | t.FailNow() |
| 1737 | } |
| 1738 | |
| 1739 | // Panics asserts that the code inside the specified PanicTestFunc panics. |
| 1740 | // |