matchers

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EqString

func EqString(format string, args ...interface{}) types.GomegaMatcher

func MatchSQLString

func MatchSQLString(expected interface{}) types.GomegaMatcher

MatchSQLString creates a matcher to test if a given `core.SQL` string output has a specific string or a matcher of a string.

func MatchSQLValues

func MatchSQLValues(expected interface{}) types.GomegaMatcher

Types

type SQLStringMatcher

type SQLStringMatcher struct {
	Expected interface{}
}

SQLStringMatcher matches a `core.SQL` `String()` value

func (*SQLStringMatcher) FailureMessage

func (matcher *SQLStringMatcher) FailureMessage(actual interface{}) (message string)

func (*SQLStringMatcher) Match

func (matcher *SQLStringMatcher) Match(actual interface{}) (success bool, err error)

func (*SQLStringMatcher) NegatedFailureMessage

func (matcher *SQLStringMatcher) NegatedFailureMessage(actual interface{}) (message string)

type SQLValuesMatcher

type SQLValuesMatcher struct {
	Expected interface{}
}

SQLValuesMatcher matches a `core.SQL` `Values()` value

func (*SQLValuesMatcher) FailureMessage

func (matcher *SQLValuesMatcher) FailureMessage(actual interface{}) (message string)

func (*SQLValuesMatcher) Match

func (matcher *SQLValuesMatcher) Match(actual interface{}) (success bool, err error)

func (*SQLValuesMatcher) NegatedFailureMessage

func (matcher *SQLValuesMatcher) NegatedFailureMessage(actual interface{}) (message string)

Jump to

Keyboard shortcuts

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