Documentation ¶
Index ¶
- func AllKeys(matcher types.GomegaMatcher) types.GomegaMatcher
- func BeValidPort() types.GomegaMatcher
- func MatchGolden(matcherFn MatcherFn, goldenFilePath ...string) types.GomegaMatcher
- func MatchGoldenEqual(goldenFilePath ...string) types.GomegaMatcher
- func MatchGoldenJSON(goldenFilePath ...string) types.GomegaMatcher
- func MatchGoldenXML(goldenFilePath ...string) types.GomegaMatcher
- func MatchGoldenYAML(goldenFilePath ...string) types.GomegaMatcher
- type GoldenMatcher
- type MatcherFn
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
Click to show internal directories.
Click to hide internal directories.