Versions in this module Expand all Collapse all v1 v1.0.0 Feb 4, 2019 Changes in this version + type ErrorWithCodeMatcher struct + Expected interface{} + func ErrorWithCode(code string) *ErrorWithCodeMatcher + func (matcher *ErrorWithCodeMatcher) FailureMessage(actual interface{}) (message string) + func (matcher *ErrorWithCodeMatcher) Match(actual interface{}) (r bool, rErr error) + func (matcher *ErrorWithCodeMatcher) NegatedFailureMessage(actual interface{}) (message string) + type ErrorWithModuleMatcher struct + Expected interface{} + func ErrorWithModule(module string) *ErrorWithModuleMatcher + func (matcher *ErrorWithModuleMatcher) FailureMessage(actual interface{}) (message string) + func (matcher *ErrorWithModuleMatcher) Match(actual interface{}) (r bool, rErr error) + func (matcher *ErrorWithModuleMatcher) NegatedFailureMessage(actual interface{}) (message string) + type ErrorWithReasonMatcher struct + Expected error + func ErrorWithReason(err error) *ErrorWithReasonMatcher + func (matcher *ErrorWithReasonMatcher) FailureMessage(actual interface{}) (message string) + func (matcher *ErrorWithReasonMatcher) Match(actual interface{}) (r bool, rErr error) + func (matcher *ErrorWithReasonMatcher) NegatedFailureMessage(actual interface{}) (message string) + type HttpErrorMatcher struct + Expected int + func HttpStatus(code int) *HttpErrorMatcher + func (matcher *HttpErrorMatcher) FailureMessage(actual interface{}) (message string) + func (matcher *HttpErrorMatcher) Match(actual interface{}) (r bool, rErr error) + func (matcher *HttpErrorMatcher) NegatedFailureMessage(actual interface{}) (message string) Incompatible versions in this module v2.1.0+incompatible May 23, 2019 v2.0.0+incompatible May 6, 2019 Other modules containing this package github.com/lab259/errors/v2