gomega_matchers

package
v0.8.10 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllKeys

func AllKeys(matcher types.GomegaMatcher) types.GomegaMatcher

func BeValidPort

func BeValidPort() types.GomegaMatcher

func MatchGolden added in v0.3.0

func MatchGolden(
	matcherFn MatcherFn,
	goldenFilePath ...string,
) types.GomegaMatcher

MatchGolden matches Golden file overriding it with actual content if UPDATE_GOLDEN_FILES is set to true

func MatchGoldenEqual added in v0.3.0

func MatchGoldenEqual(goldenFilePath ...string) types.GomegaMatcher

func MatchGoldenJSON added in v0.3.0

func MatchGoldenJSON(goldenFilePath ...string) types.GomegaMatcher

func MatchGoldenXML added in v0.3.0

func MatchGoldenXML(goldenFilePath ...string) types.GomegaMatcher

func MatchGoldenYAML added in v0.3.0

func MatchGoldenYAML(goldenFilePath ...string) types.GomegaMatcher

Types

type GoldenMatcher added in v0.3.0

type GoldenMatcher struct {
	MatcherFactory MatcherFn
	Matcher        types.GomegaMatcher
	GoldenFilePath string
}

func (*GoldenMatcher) FailureMessage added in v0.3.0

func (g *GoldenMatcher) FailureMessage(actual interface{}) (message string)

func (*GoldenMatcher) Match added in v0.3.0

func (g *GoldenMatcher) Match(actual interface{}) (success bool, err error)

func (*GoldenMatcher) NegatedFailureMessage added in v0.3.0

func (g *GoldenMatcher) NegatedFailureMessage(actual interface{}) (message string)

type MatcherFn added in v0.3.0

type MatcherFn = func(expected interface{}) types.GomegaMatcher

Jump to

Keyboard shortcuts

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