Skip to content

Commit

Permalink
chore: update to gherkin/go v24 (#6)
Browse files Browse the repository at this point in the history
* chore: update to gherkin/go v24

* update deps
  • Loading branch information
aaronc authored Jan 12, 2023
1 parent db25658 commit 500df10
Show file tree
Hide file tree
Showing 15 changed files with 50 additions and 32 deletions.
5 changes: 3 additions & 2 deletions datatable.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package gocuke

import (
"github.com/cockroachdb/apd/v3"
"github.com/cucumber/common/messages/go/v17"
"math/big"
"reflect"

"github.com/cockroachdb/apd/v3"
messages "github.com/cucumber/messages/go/v21"
)

// DataTable wraps a data table step argument
Expand Down
3 changes: 2 additions & 1 deletion find_step.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package gocuke

import (
"github.com/cucumber/common/messages/go/v17"
"testing"

messages "github.com/cucumber/messages/go/v21"
)

func (r *Runner) findStep(t *testing.T, step *messages.PickleStep) *stepDef {
Expand Down
9 changes: 5 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ go 1.17
require (
github.com/alecthomas/participle/v2 v2.0.0-alpha7
github.com/cockroachdb/apd/v3 v3.1.0
github.com/cucumber/common/gherkin/go/v22 v22.0.0
github.com/cucumber/common/messages/go/v17 v17.1.1
github.com/cucumber/common/messages/go/v19 v19.1.2
github.com/cucumber/gherkin/go/v26 v26.0.3
github.com/cucumber/messages/go/v21 v21.0.1
github.com/google/go-cmp v0.5.5
github.com/stretchr/testify v1.7.0
github.com/stretchr/testify v1.8.1
gotest.tools/v3 v3.1.0
pgregory.net/rapid v0.4.7
)
Expand All @@ -19,5 +20,5 @@ require (
github.com/lib/pq v1.10.4 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
23 changes: 15 additions & 8 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1 h1:GDQdwm/gAcJcLAK
github.com/alecthomas/repr v0.0.0-20181024024818-d37bc2a10ba1/go.mod h1:xTS7Pm1pD1mvyM075QCDSRqH6qRLXylzS24ZTpRiSzQ=
github.com/cockroachdb/apd/v3 v3.1.0 h1:MK3Ow7LH0W8zkd5GMKA1PvS9qG3bWFI95WaVNfyZJ/w=
github.com/cockroachdb/apd/v3 v3.1.0/go.mod h1:6qgPBMXjATAdD/VefbRP9NoSLKjbB4LCoA7gN4LpHs4=
github.com/cucumber/common/gherkin/go/v22 v22.0.0 h1:4K8NqptbvdOrjL9DEea6HFjSpbdT9+Q5kgLpmmsHYl0=
github.com/cucumber/common/gherkin/go/v22 v22.0.0/go.mod h1:3mJT10B2GGn3MvVPd3FwR7m2u4tLhSRhWUqJU4KN4Fg=
github.com/cucumber/common/messages/go/v17 v17.1.1 h1:RNqopvIFyLWnKv0LfATh34SWBhXeoFTJnSrgm9cT/Ts=
github.com/cucumber/common/messages/go/v17 v17.1.1/go.mod h1:bpGxb57tDE385Rb2EohgUadLkAbhoC4IyCFi89u/JQI=
github.com/cucumber/common/messages/go/v19 v19.1.2 h1:8/ZkW9rj3KQo/regmI8kcy48tk57m427Olb7Y0lXcN4=
github.com/cucumber/common/messages/go/v19 v19.1.2/go.mod h1:0KLDvMVmmkEZcWUSKxFHSUSLS1gjujBbPN0p41IwwJ4=
github.com/cucumber/gherkin/go/v26 v26.0.3 h1:ExcdadOazxzN11RYQZfaWcODMp7ZbRYLwqMbqWF8QEw=
github.com/cucumber/gherkin/go/v26 v26.0.3/go.mod h1:Xf+SrSuFbivEDZvmHjTShord3zlEkqsj7QB4sxl1SuU=
github.com/cucumber/messages/go/v21 v21.0.1 h1:wzA0LxwjlWQYZd32VTlAVDTkW6inOFmSM+RuOwHZiMI=
github.com/cucumber/messages/go/v21 v21.0.1/go.mod h1:zheH/2HS9JLVFukdrsPWoPdmUtmYQAQPLk7w5vWsk5s=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gofrs/uuid v4.0.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/gofrs/uuid v4.2.0+incompatible h1:yyYWMnhkhrKwwr8gAOcOCYxOOscHgDS9yZgBrnJfGa0=
github.com/gofrs/uuid v4.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
Expand All @@ -25,9 +26,14 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.7.4/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1 h1:w7B6lhMri9wdJUVmEZPGGhZzrYTPvgJArz7wNPgYKsk=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
golang.org/x/crypto v0.0.0-20191011191535-87dc89f01550/go.mod h1:yigFU9vqHzYiE8UmvKecakEJjdnWj3jj499lnFckfCI=
Expand Down Expand Up @@ -55,8 +61,9 @@ golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1/go.mod h1:I/5z698sn9Ka8T
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
gotest.tools/v3 v3.1.0 h1:rVV8Tcg/8jHUkPUorwjaMTtemIMVXfIPKiOqnhEhakk=
gotest.tools/v3 v3.1.0/go.mod h1:fHy7eyTmJFO5bQbUsEGQ1v4m2J3Jz9eWL54TP2/ZuYQ=
pgregory.net/rapid v0.4.7 h1:MTNRktPuv5FNqOO151TM9mDTa+XHcX6ypYeISDVD14g=
Expand Down
2 changes: 1 addition & 1 deletion guess.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"strings"
"unicode"

"github.com/cucumber/common/messages/go/v17"
messages "github.com/cucumber/messages/go/v21"
)

func guessMethodSig(step *messages.PickleStep) methodSig {
Expand Down
5 changes: 3 additions & 2 deletions guess_test.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gocuke

import (
"github.com/cucumber/common/messages/go/v17"
"gotest.tools/v3/assert"
"testing"

messages "github.com/cucumber/messages/go/v21"
"gotest.tools/v3/assert"
)

func TestGuessMethodSig(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion internal/tag/tags.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package tag

import "github.com/cucumber/common/messages/go/v17"
import messages "github.com/cucumber/messages/go/v21"

type Tags map[string]bool

Expand Down
2 changes: 1 addition & 1 deletion run.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"reflect"
"testing"

gherkin "github.com/cucumber/common/gherkin/go/v22"
gherkin "github.com/cucumber/gherkin/go/v26"
"gotest.tools/v3/assert"
)

Expand Down
5 changes: 3 additions & 2 deletions run_doc.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package gocuke

import (
"github.com/cucumber/common/gherkin/go/v22"
"github.com/cucumber/common/messages/go/v17"
"testing"

gherkin "github.com/cucumber/gherkin/go/v26"
messages "github.com/cucumber/messages/go/v21"
)

type docRunner struct {
Expand Down
8 changes: 5 additions & 3 deletions run_scenario.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package gocuke

import (
"github.com/cucumber/common/messages/go/v17"
"github.com/regen-network/gocuke/internal/tag"
"pgregory.net/rapid"
"reflect"
"testing"

messages "github.com/cucumber/messages/go/v21"
"pgregory.net/rapid"

"github.com/regen-network/gocuke/internal/tag"
)

func (r *docRunner) runScenario(t *testing.T, pickle *messages.Pickle) {
Expand Down
3 changes: 2 additions & 1 deletion run_step.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package gocuke

import (
"github.com/cucumber/common/messages/go/v17"
"reflect"

messages "github.com/cucumber/messages/go/v21"
)

func (r *scenarioRunner) runHook(def *stepDef) {
Expand Down
8 changes: 5 additions & 3 deletions runner.go
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
package gocuke

import (
"github.com/cucumber/common/messages/go/v17"
"github.com/regen-network/gocuke/internal/tag"
"pgregory.net/rapid"
"reflect"
"testing"

"github.com/cucumber/common/messages/go/v19"
"pgregory.net/rapid"

"github.com/regen-network/gocuke/internal/tag"
)

// Runner is a test runner.
Expand Down
2 changes: 1 addition & 1 deletion scenario.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package gocuke

import "github.com/cucumber/common/messages/go/v17"
import messages "github.com/cucumber/messages/go/v21"

// Scenario is a special step argument type which describes the running scenario
// and that can be used in a step definition or hook method.
Expand Down
2 changes: 1 addition & 1 deletion step.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package gocuke

import "github.com/cucumber/common/messages/go/v17"
import messages "github.com/cucumber/messages/go/v21"

// Step is a special step argument type which describes the running step
// and that can be used in a step definition or hook method.
Expand Down
3 changes: 2 additions & 1 deletion value.go
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
package gocuke

import (
"github.com/cockroachdb/apd/v3"
"math/big"
"reflect"
"strconv"

"github.com/cockroachdb/apd/v3"
)

func convertParamValue(t TestingT, match string, typ reflect.Type, funcLoc string) reflect.Value {
Expand Down

0 comments on commit 500df10

Please sign in to comment.