(t *testing.T)
| 198 | } |
| 199 | |
| 200 | func TestError(t *testing.T) { |
| 201 | |
| 202 | Error(t, errors.New("some error")) |
| 203 | |
| 204 | mockT := new(MockT) |
| 205 | Error(mockT, nil) |
| 206 | if !mockT.Failed { |
| 207 | t.Error("Check should fail") |
| 208 | } |
| 209 | } |
| 210 | |
| 211 | func TestErrorContains(t *testing.T) { |
| 212 |