Documentation
¶
Index ¶
- Constants
- func StringContains(v1, v2 string) bool
- func StringEqual(v1, v2 string) bool
- func StringRegexMatch(v, expression string) bool
- type Matcher
- func All(matchers ...Matcher) Matcher
- func Func(m func() bool) Matcher
- func JSON(matcher func(g *gabs.Container) error) Matcher
- func JSONPath(path, v string, cmp StringCompare) Matcher
- func JSONPathContains(path, v string) Matcher
- func JSONPathEqual(path, v string) Matcher
- func StepOutputText(v string, cmp StringCompare) Matcher
- func StepOutputTextContains(v string) Matcher
- func StepOutputTextEqual(v string) Matcher
- func StepStatus(code codes.Code, message, verbose string) Matcher
- func Text(expectedValue string, cmp StringCompare) Matcher
- func TextContains(v string) Matcher
- func TextEqual(v string) Matcher
- type StringCompare
Constants ¶
View Source
const AnyText = "AnyText"
Variables ¶
This section is empty.
Functions ¶
func StringContains ¶
func StringEqual ¶
func StringRegexMatch ¶
Types ¶
type Matcher ¶
func Func ¶
Func a simple matcher that decided based on true/false value of a function if the operation was successful
func JSON ¶
JSON parses step output using gabs and calls the matcher function with the result of gabs parsing
func JSONPath ¶
func JSONPath(path, v string, cmp StringCompare) Matcher
func JSONPathContains ¶
JSONPathContains expects the value of path to contain given string
func JSONPathEqual ¶
JSONPathEqual expects the value of path to equal given string
func StepOutputText ¶
func StepOutputText(v string, cmp StringCompare) Matcher
func StepOutputTextContains ¶
StepOutputTextContains check if step `output` key contains the expected value
func StepOutputTextEqual ¶
StepOutputTextEqual check if step `output` key equals the expected value
type StringCompare ¶
Click to show internal directories.
Click to hide internal directories.