(c *gc.C)
| 390 | } |
| 391 | |
| 392 | func (*functionSuite) TestHideErrorStillReturnsErrorString(c *gc.C) { |
| 393 | err := stderrors.New("This is a simple error") |
| 394 | err = errors.Hide(err) |
| 395 | |
| 396 | c.Assert(err.Error(), gc.Equals, "This is a simple error") |
| 397 | } |
| 398 | |
| 399 | func (*functionSuite) TestQuietWrappedErrorStillSatisfied(c *gc.C) { |
| 400 | simpleTestError := errors.ConstError("I am a teapot") |