MCPcopy Create free account
hub / github.com/juju/errors / TestQuietWrappedErrorStillSatisfied

Method TestQuietWrappedErrorStillSatisfied

functions_test.go:399–404  ·  view source on GitHub ↗
(c *gc.C)

Source from the content-addressed store, hash-verified

397}
398
399func (*functionSuite) TestQuietWrappedErrorStillSatisfied(c *gc.C) {
400 simpleTestError := errors.ConstError("I am a teapot")
401 err := fmt.Errorf("fill me up%w", errors.Hide(simpleTestError))
402 c.Assert(err.Error(), gc.Equals, "fill me up")
403 c.Assert(errors.Is(err, simpleTestError), gc.Equals, true)
404}
405
406type ComplexErrorMessage interface {
407 error

Callers

nothing calls this directly

Calls 4

ConstErrorTypeAlias · 0.92
HideFunction · 0.92
IsFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected