NotZero asserts that i is not the zero value for its type.
(t TestingT, i interface{}, msgAndArgs ...interface{})
| 1716 | |
| 1717 | // NotZero asserts that i is not the zero value for its type. |
| 1718 | func NotZero(t TestingT, i interface{}, msgAndArgs ...interface{}) { |
| 1719 | if h, ok := t.(tHelper); ok { |
| 1720 | h.Helper() |
| 1721 | } |
| 1722 | if assert.NotZero(t, i, msgAndArgs...) { |
| 1723 | return |
| 1724 | } |
| 1725 | t.FailNow() |
| 1726 | } |
| 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{}) { |
searching dependent graphs…