ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error.
(err error, explain ...interface{})
| 19 | |
| 20 | // ExpectNoError checks if "err" is set, and if so, fails assertion while logging the error. |
| 21 | func ExpectNoError(err error, explain ...interface{}) { |
| 22 | ExpectNoErrorWithOffset(1, err, explain...) |
| 23 | } |
| 24 | |
| 25 | // ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller |
| 26 | // (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f"). |
no test coverage detected