matchers

package
v2.37.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OneOfMatcher

type OneOfMatcher struct {
	Elements []interface{}
}

func MatchOneOf

func MatchOneOf(elements ...interface{}) *OneOfMatcher

func (*OneOfMatcher) FailureMessage

func (m *OneOfMatcher) FailureMessage(actual interface{}) (message string)

func (*OneOfMatcher) Match

func (m *OneOfMatcher) Match(actual interface{}) (success bool, err error)

func (*OneOfMatcher) NegatedFailureMessage

func (m *OneOfMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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