func (*ErrorsSuite) TestIsFatal_Traced(c *gc.C) { err := errors.Trace(model.ErrRemoved) result := model.IsFatal(err) c.Check(result, jc.IsTrue) }
func (*ErrorsSuite) TestIsFatal_Random(c *gc.C) { err := errors.New("whatever") result := model.IsFatal(err) c.Check(result, jc.IsFalse) }
func (*ErrorsSuite) TestIsFatal_Exact(c *gc.C) { err := model.ErrRemoved result := model.IsFatal(err) c.Check(result, jc.IsTrue) }
func (*ErrorsSuite) TestIsFatal_Nil(c *gc.C) { result := model.IsFatal(nil) c.Check(result, jc.IsFalse) }