HandleAsAssertionFailureDepth is like HandleAsAssertionFailure but the depth at which the call stack is captured can be specified.
(depth int, origErr error)
| 184 | // HandleAsAssertionFailureDepth is like HandleAsAssertionFailure but |
| 185 | // the depth at which the call stack is captured can be specified. |
| 186 | func HandleAsAssertionFailureDepth(depth int, origErr error) error { |
| 187 | return errutil.HandleAsAssertionFailureDepth(1+depth, origErr) |
| 188 | } |
| 189 | |
| 190 | // As finds the first error in err's chain that matches the type to which target |
| 191 | // points, and if so, sets the target to its value and returns true. An error |
nothing calls this directly
no test coverage detected
searching dependent graphs…