ExpectError expects an error happens, otherwise an exception raises
(err error, explain ...interface{})
| 27 | |
| 28 | // ExpectError expects an error happens, otherwise an exception raises |
| 29 | func ExpectError(err error, explain ...interface{}) { |
| 30 | gomega.ExpectWithOffset(1, err).To(gomega.HaveOccurred(), explain...) |
| 31 | } |
| 32 | |
| 33 | // ExpectErrorMatch ExpectMatchError expects an error happens and has a message matching the given string, otherwise an exception raises |
| 34 | func ExpectErrorMatch(err error, msg string, explain ...interface{}) { |
no outgoing calls
no test coverage detected