Example #1
0
func (*ErrorsSuite) TestIgnoreErrRemoved_Traced(c *gc.C) {
	err := errors.Trace(model.ErrRemoved)
	result := model.IgnoreErrRemoved(err)
	c.Check(result, jc.ErrorIsNil)
}
Example #2
0
func (*ErrorsSuite) TestIgnoreErrRemoved_Random(c *gc.C) {
	err := errors.New("whatever")
	result := model.IgnoreErrRemoved(err)
	c.Check(result, gc.Equals, err)
}
Example #3
0
func (*ErrorsSuite) TestIgnoreErrRemoved_Exact(c *gc.C) {
	err := model.ErrRemoved
	result := model.IgnoreErrRemoved(err)
	c.Check(result, jc.ErrorIsNil)
}
Example #4
0
func (*ErrorsSuite) TestIgnoreErrRemoved_Nil(c *gc.C) {
	result := model.IgnoreErrRemoved(nil)
	c.Check(result, jc.ErrorIsNil)
}