ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
(err error, explain ...interface{})
| 38 | |
| 39 | // ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error. |
| 40 | func ExpectNoError(err error, explain ...interface{}) { |
| 41 | ExpectNoErrorWithOffset(1, err, explain...) |
| 42 | } |
| 43 | |
| 44 | // ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller |
| 45 | // (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f"). |
no test coverage detected