(c *gc.C)
| 32 | } |
| 33 | |
| 34 | func (*functionSuite) TestErrorf(c *gc.C) { |
| 35 | err := errors.Errorf("testing %d", 42) |
| 36 | loc := errorLocationValue(c) |
| 37 | |
| 38 | c.Assert(err.Error(), gc.Equals, "testing 42") |
| 39 | c.Assert(errors.Cause(err), gc.Equals, err) |
| 40 | c.Assert(errors.Details(err), Contains, loc) |
| 41 | } |
| 42 | |
| 43 | func (*functionSuite) TestTrace(c *gc.C) { |
| 44 | first := errors.New("first") |
nothing calls this directly
no test coverage detected