matcher

package module
v0.0.0-...-dec98f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2015 License: MIT Imports: 4 Imported by: 0

README

matcher

a collection of gomega matchers that I need xD

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqualImage

func EqualImage(expected interface{}) types.GomegaMatcher

EqualImage matches an image with an actual image

Types

type EqualImageMatcher

type EqualImageMatcher struct {
	Expected interface{}
}

EqualImageMatcher matches one image against another

func (*EqualImageMatcher) FailureMessage

func (matcher *EqualImageMatcher) FailureMessage(actual interface{}) (message string)

FailureMessage if images won't match

func (*EqualImageMatcher) Match

func (matcher *EqualImageMatcher) Match(actual interface{}) (success bool, err error)

Match matches Expected with actual types must be image.Image otherwise it fails

func (*EqualImageMatcher) NegatedFailureMessage

func (matcher *EqualImageMatcher) NegatedFailureMessage(actual interface{}) (message string)

NegatedFailureMessage if images match if they shouldn't

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL