(c *gc.C)
| 140 | } |
| 141 | |
| 142 | func (*functionSuite) TestMask(c *gc.C) { |
| 143 | first := errors.New("first") |
| 144 | err := errors.Mask(first) |
| 145 | loc := errorLocationValue(c) |
| 146 | c.Assert(err.Error(), gc.Equals, "first") |
| 147 | c.Assert(errors.Cause(err), gc.Equals, err) |
| 148 | c.Assert(errors.Details(err), Contains, loc) |
| 149 | |
| 150 | c.Assert(errors.Mask(nil), gc.IsNil) |
| 151 | } |
| 152 | |
| 153 | func (*functionSuite) TestMaskf(c *gc.C) { |
| 154 | first := errors.New("first") |