AssertionFailedWithDepthf creates an internal error with a stack trace collected at the specified depth. See the doc of `AssertionFailedf()` for more details.
(depth int, format string, args ...interface{})
| 34 | // with a stack trace collected at the specified depth. |
| 35 | // See the doc of `AssertionFailedf()` for more details. |
| 36 | func AssertionFailedWithDepthf(depth int, format string, args ...interface{}) error { |
| 37 | err := NewWithDepthf(1+depth, format, args...) |
| 38 | err = assert.WithAssertionFailure(err) |
| 39 | return err |
| 40 | } |
| 41 | |
| 42 | // HandleAsAssertionFailure hides an error and turns it into |
| 43 | // an assertion failure. Both details from the original error and the |
no test coverage detected
searching dependent graphs…