(t *testing.T)
| 73 | } |
| 74 | |
| 75 | func TestNotNilWrapper(t *testing.T) { |
| 76 | require := New(t) |
| 77 | require.NotNil(t, new(AssertionTesterConformingObject)) |
| 78 | |
| 79 | mockT := new(MockT) |
| 80 | mockRequire := New(mockT) |
| 81 | mockRequire.NotNil(nil) |
| 82 | if !mockT.Failed { |
| 83 | t.Error("Check should fail") |
| 84 | } |
| 85 | } |
| 86 | |
| 87 | func TestNilWrapper(t *testing.T) { |
| 88 | require := New(t) |