Documentation
¶
Index ¶
- func JoinedJson_IsMatcher(x interface{}) *bool
- func Match_Absent() assertions.Matcher
- func Match_AnyValue() assertions.Matcher
- func Match_ArrayEquals(pattern *[]interface{}) assertions.Matcher
- func Match_ArrayWith(pattern *[]interface{}) assertions.Matcher
- func Match_Exact(pattern interface{}) assertions.Matcher
- func Match_JoinedJson(pattern interface{}) assertions.Matcher
- func Match_Not(pattern interface{}) assertions.Matcher
- func Match_ObjectEquals(pattern *map[string]interface{}) assertions.Matcher
- func Match_ObjectLike(pattern *map[string]interface{}) assertions.Matcher
- func Match_SerializedJson(pattern interface{}) assertions.Matcher
- func Match_StringLikeRegexp(pattern *string) assertions.Matcher
- func NewJoinedJson_Override(j JoinedJson, pattern interface{})
- func NewMatch_Override(m Match)
- type JoinedJson
- type Match
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func JoinedJson_IsMatcher ¶
func JoinedJson_IsMatcher(x interface{}) *bool
Check whether the provided object is a subtype of the `IMatcher`.
func Match_Absent ¶
func Match_Absent() assertions.Matcher
Use this matcher in the place of a field's value, if the field must not be present.
func Match_AnyValue ¶
func Match_AnyValue() assertions.Matcher
Matches any non-null value at the target.
func Match_ArrayEquals ¶
func Match_ArrayEquals(pattern *[]interface{}) assertions.Matcher
Matches the specified pattern with the array found in the same relative path of the target.
The set of elements (or matchers) must match exactly and in order.
func Match_ArrayWith ¶
func Match_ArrayWith(pattern *[]interface{}) assertions.Matcher
Matches the specified pattern with the array found in the same relative path of the target.
The set of elements (or matchers) must be in the same order as would be found.
func Match_Exact ¶
func Match_Exact(pattern interface{}) assertions.Matcher
Deep exact matching of the specified pattern to the target.
func Match_JoinedJson ¶
func Match_JoinedJson(pattern interface{}) assertions.Matcher
func Match_Not ¶
func Match_Not(pattern interface{}) assertions.Matcher
Matches any target which does NOT follow the specified pattern.
func Match_ObjectEquals ¶
func Match_ObjectEquals(pattern *map[string]interface{}) assertions.Matcher
Matches the specified pattern to an object found in the same relative path of the target.
The keys and their values (or matchers) must match exactly with the target.
func Match_ObjectLike ¶
func Match_ObjectLike(pattern *map[string]interface{}) assertions.Matcher
Matches the specified pattern to an object found in the same relative path of the target.
The keys and their values (or matchers) must be present in the target but the target can be a superset.
func Match_SerializedJson ¶
func Match_SerializedJson(pattern interface{}) assertions.Matcher
Matches any string-encoded JSON and applies the specified pattern after parsing it.
func Match_StringLikeRegexp ¶
func Match_StringLikeRegexp(pattern *string) assertions.Matcher
Matches targets according to a regular expression.
func NewJoinedJson_Override ¶
func NewJoinedJson_Override(j JoinedJson, pattern interface{})
func NewMatch_Override ¶
func NewMatch_Override(m Match)
Types ¶
type JoinedJson ¶
type JoinedJson interface { assertions.Matcher // A name for the matcher. // // This is collected as part of the result and may be presented to the user. Name() *string // Test whether a target matches the provided pattern. // // Every Matcher must implement this method. // This method will be invoked by the assertions framework. Do not call this method directly. Test(actual interface{}) assertions.MatchResult }
func NewJoinedJson ¶
func NewJoinedJson(pattern interface{}) JoinedJson