(c *gc.C)
| 23 | var _ = gc.Suite(&functionSuite{}) |
| 24 | |
| 25 | func (*functionSuite) TestNew(c *gc.C) { |
| 26 | err := errors.New("testing") |
| 27 | loc := errorLocationValue(c) |
| 28 | |
| 29 | c.Assert(err.Error(), gc.Equals, "testing") |
| 30 | c.Assert(errors.Cause(err), gc.Equals, err) |
| 31 | c.Assert(errors.Details(err), Contains, loc) |
| 32 | } |
| 33 | |
| 34 | func (*functionSuite) TestErrorf(c *gc.C) { |
| 35 | err := errors.Errorf("testing %d", 42) |
nothing calls this directly
no test coverage detected