ExpectNoErrorWithOffset checks if "err" is set, and if so, fails assertion while logging the error at "offset" levels above its caller (for example, for call chain f -> g -> ExpectNoErrorWithOffset(1, ...) error would be logged for "f").
(offset int, err error, explain ...interface{})
| 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"). |
| 46 | func ExpectNoErrorWithOffset(offset int, err error, explain ...interface{}) { |
| 47 | gomega.ExpectWithOffset(1+offset, err).NotTo(gomega.HaveOccurred(), explain...) |
| 48 | } |
| 49 | |
| 50 | // ExpectConsistOf expects actual contains precisely the extra elements. The ordering of the elements does not matter. |
| 51 | func ExpectConsistOf(actual interface{}, extra interface{}, explain ...interface{}) { |
no outgoing calls
no test coverage detected