NewAssertionErrorWithWrappedErrDepthf is like NewAssertionErrorWithWrappedErrf but the depth at which the call stack is captured can be specified. See the doc of `AssertionFailedf()` for more details.
(
depth int, origErr error, format string, args ...interface{},
)
| 71 | // stack is captured can be specified. |
| 72 | // See the doc of `AssertionFailedf()` for more details. |
| 73 | func NewAssertionErrorWithWrappedErrDepthf( |
| 74 | depth int, origErr error, format string, args ...interface{}, |
| 75 | ) error { |
| 76 | err := barriers.Handled(origErr) |
| 77 | err = WrapWithDepthf(depth+1, err, format, args...) |
| 78 | err = assert.WithAssertionFailure(err) |
| 79 | return err |
| 80 | } |
no test coverage detected
searching dependent graphs…