Nil asserts that the value is nil.
(tb testing.TB, got any, options ...Option)
| 51 | |
| 52 | // Nil asserts that the value is nil. |
| 53 | func Nil(tb testing.TB, got any, options ...Option) bool { |
| 54 | tb.Helper() |
| 55 | if isNil(got) { |
| 56 | return true |
| 57 | } |
| 58 | report(tb, got, nil, "assert.Nil", false /* showWant */, options...) |
| 59 | return false |
| 60 | } |
| 61 | |
| 62 | // NotNil asserts that the value isn't nil. |
| 63 | func NotNil(tb testing.TB, got any, options ...Option) bool { |