MCPcopy Create free account
hub / github.com/hashicorp/errwrap / TestWrappedError_IsCompatibleWithErrorsUnwrap

Function TestWrappedError_IsCompatibleWithErrorsUnwrap

errwrap_test.go:112–119  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

110}
111
112func TestWrappedError_IsCompatibleWithErrorsUnwrap(t *testing.T) {
113 inner := errors.New("inner error")
114 err := Wrap(errors.New("outer"), inner)
115 actual := errors.Unwrap(err)
116 if actual != inner {
117 t.Fatal("wrappedError did not unwrap to inner")
118 }
119}

Callers

nothing calls this directly

Calls 2

WrapFunction · 0.85
UnwrapMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…