(t *testing.T)
| 88 | } |
| 89 | |
| 90 | func TestError(t *testing.T) { |
| 91 | t.Parallel() |
| 92 | |
| 93 | tb := &fakeTB{} |
| 94 | assert.Error(tb, "meow", io.EOF) |
| 95 | |
| 96 | defer func() { |
| 97 | recover() |
| 98 | simpleassert.Equal(t, "fatals", 1, tb.fatals) |
| 99 | }() |
| 100 | assert.Error(tb, "meow", nil) |
| 101 | } |
| 102 | |
| 103 | type fakeTB struct { |
| 104 | testing.TB |