matcher

package
v0.0.0-...-d866e0e Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2019 License: Unlicense Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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