(t *testing.T)
| 185 | } |
| 186 | |
| 187 | func TestErrorWrapper(t *testing.T) { |
| 188 | require := New(t) |
| 189 | require.Error(errors.New("some error")) |
| 190 | |
| 191 | mockT := new(MockT) |
| 192 | mockRequire := New(mockT) |
| 193 | mockRequire.Error(nil) |
| 194 | if !mockT.Failed { |
| 195 | t.Error("Check should fail") |
| 196 | } |
| 197 | } |
| 198 | |
| 199 | func TestErrorContainsWrapper(t *testing.T) { |
| 200 | require := New(t) |