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