4 "github.com/onsi/gomega/internal/oraclematcher"
5 "github.com/onsi/gomega/types"
8 type NotMatcher struct {
9 Matcher types.GomegaMatcher
12 func (m *NotMatcher) Match(actual interface{}) (bool, error) {
13 success, err := m.Matcher.Match(actual)
20 func (m *NotMatcher) FailureMessage(actual interface{}) (message string) {
21 return m.Matcher.NegatedFailureMessage(actual) // works beautifully
24 func (m *NotMatcher) NegatedFailureMessage(actual interface{}) (message string) {
25 return m.Matcher.FailureMessage(actual) // works beautifully
28 func (m *NotMatcher) MatchMayChangeInTheFuture(actual interface{}) bool {
29 return oraclematcher.MatchMayChangeInTheFuture(m.Matcher, actual) // just return m.Matcher's value