(t *testing.T)
| 57 | } |
| 58 | |
| 59 | func TestWrapf(t *testing.T) { |
| 60 | err := errors.New("0") |
| 61 | err1 := Wrapf(err, "there are %d errors being wrapped", 1) |
| 62 | if err1.Error() != "there are 1 errors being wrapped: 0" { |
| 63 | t.Fatalf("err msg = %s want 'there are 1 errors being wrapped: 0'", err1.Error()) |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | func TestWrapMsg(t *testing.T) { |
| 68 | err := errors.New("rooti") |