Documentation ¶
Overview ¶
Package matcher contains the matcher with github.com/google/go-cmp/cmp (helps for the time.Time)
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CmpEqual ¶
func CmpEqual(expected interface{}) types.GomegaMatcher
CmpEqual uses cmp.Equal to compare actual with expected. Equal is strict about types when performing comparisons. It is an error for both actual and expected to be nil. Use BeNil() instead.
Types ¶
type CmpMatcher ¶
type CmpMatcher struct {
Expected interface{}
}
CmpMatcher compare
func (*CmpMatcher) FailureMessage ¶
func (matcher *CmpMatcher) FailureMessage(actual interface{}) (message string)
FailureMessage print the failure
func (*CmpMatcher) Match ¶
func (matcher *CmpMatcher) Match(actual interface{}) (success bool, err error)
Match test if they match
func (*CmpMatcher) NegatedFailureMessage ¶
func (matcher *CmpMatcher) NegatedFailureMessage(actual interface{}) (message string)
NegatedFailureMessage print the failure
Click to show internal directories.
Click to hide internal directories.