matchers

package
v0.0.0-...-76817a0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseMatcher

type BaseMatcher struct{ MatcherIface }

func Matcher

func Matcher(m MatcherIface) *BaseMatcher

func (*BaseMatcher) FailureMessage

func (m *BaseMatcher) FailureMessage(actual interface{}) string

func (*BaseMatcher) Match

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

func (*BaseMatcher) NegatedFailureMessage

func (m *BaseMatcher) NegatedFailureMessage(actual interface{}) string

func (*BaseMatcher) Template

func (m *BaseMatcher) Template(negate bool) (s string)

type MatcherIface

type MatcherIface interface {
	Matcher() types.GomegaMatcher
	Prepare(actual interface{}) interface{}
	Format(actual interface{}) string
	Message() string
	String() string
}

Jump to

Keyboard shortcuts

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