NotZero asserts that i is not the zero value for its type.
(t TestingT, i interface{}, msgAndArgs ...interface{})
| 1827 | |
| 1828 | // NotZero asserts that i is not the zero value for its type. |
| 1829 | func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) { |
| 1830 | if h, ok := t.(tHelper); ok { |
| 1831 | h.Helper() |
| 1832 | } |
| 1833 | if assert.NotZero(t, i, msgAndArgs...) { |
| 1834 | return |
| 1835 | } |
| 1836 | t.FailNow() |
| 1837 | } |
| 1838 | |
| 1839 | // NotZerof asserts that i is not the zero value for its type. |
| 1840 | func NotZerof(t TestingT, i interface{}, msg string, args ...interface{}) { |