(t *testing.T)
| 6 | ) |
| 7 | |
| 8 | func TestNew(t *testing.T) { |
| 9 | t.Log(New("hello")) |
| 10 | t.Log(Wrap(errors.New("hello"))) |
| 11 | t.Log(testError1()) |
| 12 | t.Log(Wrap(testError1())) |
| 13 | t.Log(Wrap(testError2())) |
| 14 | } |
| 15 | |
| 16 | func testError1() error { |
| 17 | return New("test error1") |
nothing calls this directly
no test coverage detected