(t *testing.T)
| 173 | } |
| 174 | |
| 175 | func TestNoErrorWrapper(t *testing.T) { |
| 176 | require := New(t) |
| 177 | require.NoError(nil) |
| 178 | |
| 179 | mockT := new(MockT) |
| 180 | mockRequire := New(mockT) |
| 181 | mockRequire.NoError(errors.New("some error")) |
| 182 | if !mockT.Failed { |
| 183 | t.Error("Check should fail") |
| 184 | } |
| 185 | } |
| 186 | |
| 187 | func TestErrorWrapper(t *testing.T) { |
| 188 | require := New(t) |