Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compare ¶
func Compare(expected, actual interface{}, params CompareParams) []error
Compare compares values as plain text It can be compared several ways:
- Pure values: should be equal
- Regex: try to compile 'expected' as regex and match 'actual' with it It activates on following syntax: $matchRegexp(%EXPECTED_VALUE%)
func CompareQuery ¶
Types ¶
type CompareParams ¶
type CompareParams struct { IgnoreValues bool `json:"ignoreValues" yaml:"ignoreValues"` IgnoreArraysOrdering bool `json:"ignoreArraysOrdering" yaml:"ignoreArraysOrdering"` DisallowExtraFields bool `json:"disallowExtraFields" yaml:"disallowExtraFields"` IgnoreDbOrdering bool `json:"IgnoreDbOrdering" yaml:"ignoreDbOrdering"` // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.