mirror of
https://github.com/containers/podman.git
synced 2025-12-03 19:59:39 +08:00
Bumps [github.com/onsi/gomega](https://github.com/onsi/gomega) from 1.5.0 to 1.7.0. - [Release notes](https://github.com/onsi/gomega/releases) - [Changelog](https://github.com/onsi/gomega/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/gomega/compare/v1.5.0...v1.7.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Valentin Rothberg <rothberg@redhat.com>
21 lines
496 B
Go
21 lines
496 B
Go
// untested sections: 2
|
|
|
|
package matchers
|
|
|
|
import "github.com/onsi/gomega/format"
|
|
|
|
type BeNilMatcher struct {
|
|
}
|
|
|
|
func (matcher *BeNilMatcher) Match(actual interface{}) (success bool, err error) {
|
|
return isNil(actual), nil
|
|
}
|
|
|
|
func (matcher *BeNilMatcher) FailureMessage(actual interface{}) (message string) {
|
|
return format.Message(actual, "to be nil")
|
|
}
|
|
|
|
func (matcher *BeNilMatcher) NegatedFailureMessage(actual interface{}) (message string) {
|
|
return format.Message(actual, "not to be nil")
|
|
}
|