NewAssertionErrorWithWrappedErrf wraps an error and turns it into an assertion error. Both details from the original error and the context of the caller are preserved. The original error is not visible as cause any more. The original error message is preserved. See the doc of `AssertionFailedf()` fo
(origErr error, format string, args ...interface{})
| 63 | // visible as cause any more. The original error message is preserved. |
| 64 | // See the doc of `AssertionFailedf()` for more details. |
| 65 | func NewAssertionErrorWithWrappedErrf(origErr error, format string, args ...interface{}) error { |
| 66 | return NewAssertionErrorWithWrappedErrDepthf(1, origErr, format, args...) |
| 67 | } |
| 68 | |
| 69 | // NewAssertionErrorWithWrappedErrDepthf is like |
| 70 | // NewAssertionErrorWithWrappedErrf but the depth at which the call |
searching dependent graphs…