(t testingT, data interface{})
| 67 | } |
| 68 | |
| 69 | func Nil(t testingT, data interface{}) { |
| 70 | t.Helper() |
| 71 | if data == nil || isNil(reflect.ValueOf(data)) { |
| 72 | return |
| 73 | } |
| 74 | t.Fatalf("assertion failed, unexpected: %v, expected: nil", data) |
| 75 | } |
| 76 | |
| 77 | func NotNil(t testingT, data interface{}) { |
| 78 | t.Helper() |