(t *testing.T, object interface{})
| 42 | } |
| 43 | |
| 44 | func Nil(t *testing.T, object interface{}) { |
| 45 | if !isNil(object) { |
| 46 | formattedLog(t, " <nil> (expected)\n\n\t!= %#v (actual)", object) |
| 47 | t.FailNow() |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | func NotNil(t *testing.T, object interface{}) { |
| 52 | if isNil(object) { |