(c *gc.C)
| 380 | } |
| 381 | |
| 382 | func (*functionSuite) TestSetLocation(c *gc.C) { |
| 383 | err := errors.New("test") |
| 384 | err = errors.SetLocation(err, 1) |
| 385 | stack := fmt.Sprintf("%s: test", errorLocationValue(c)) |
| 386 | _, implements := err.(errors.Locationer) |
| 387 | c.Assert(implements, gc.Equals, true) |
| 388 | |
| 389 | c.Check(errors.ErrorStack(err), gc.Equals, stack) |
| 390 | } |
| 391 | |
| 392 | func (*functionSuite) TestHideErrorStillReturnsErrorString(c *gc.C) { |
| 393 | err := stderrors.New("This is a simple error") |
nothing calls this directly
no test coverage detected