3 import "github.com/onsi/gomega/format"
5 type BeNilMatcher struct {
8 func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) {
9 return isNil(actual), nil
12 func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) {
13 return format.Message(actual, "to be nil")
16 func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) {
17 return format.Message(actual, "not to be nil")