NotNil asserts that the value isn't nil.
(tb testing.TB, got any, options ...Option)
| 61 | |
| 62 | // NotNil asserts that the value isn't nil. |
| 63 | func NotNil(tb testing.TB, got any, options ...Option) bool { |
| 64 | tb.Helper() |
| 65 | if !isNil(got) { |
| 66 | return true |
| 67 | } |
| 68 | report(tb, got, nil, "assert.NotNil", false /* showWant */, options...) |
| 69 | return false |
| 70 | } |
| 71 | |
| 72 | // Zero asserts that the value is its type's zero value. |
| 73 | func Zero[T any](tb testing.TB, got T, options ...Option) bool { |