Skip to content

Commit

Permalink
fix: eachKeyLike struct naming
Browse files Browse the repository at this point in the history
  • Loading branch information
mefellows committed May 19, 2021
1 parent 2a5b24b commit afcd3d7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions v3/matcher_v3.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,24 +118,24 @@ func FromProviderState(expression, example string) Matcher {
}
}

type eachKeyLkke struct {
type eachKeyLike struct {
Type string `json:"pact:matcher:type"`
Contents interface{} `json:"value"`
}

func (e eachKeyLkke) GetValue() interface{} {
func (e eachKeyLike) GetValue() interface{} {
return e.Contents
}

func (e eachKeyLkke) isV3Matcher() {}
func (e eachKeyLkke) isMatcher() {}
func (e eachKeyLike) isV3Matcher() {}
func (e eachKeyLike) isMatcher() {}

// Object where the key itself is ignored, but the value template must match.
//
// key - Example key to use (which will be ignored)
// template - Example value template to base the comparison on
func EachKeyLike(key string, template interface{}) Matcher {
return eachKeyLkke{
return eachKeyLike{
Type: "values",
Contents: template,
}
Expand Down

0 comments on commit afcd3d7

Please sign in to comment.