Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,18 @@ module github.com/cucumber/godog
go 1.18

require (
github.com/cucumber/gherkin/go/v26 v26.2.0
github.com/cucumber/gherkin/go/v39 v39.1.0
github.com/hashicorp/go-memdb v1.3.5
github.com/spf13/cobra v1.10.2
github.com/spf13/pflag v1.0.10
github.com/stretchr/testify v1.11.1
)

require (
github.com/cucumber/messages/go/v32 v32.3.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/gofrs/uuid v4.3.1+incompatible // indirect
github.com/google/uuid v1.6.0 // indirect
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/golang-lru v0.5.4 // indirect
github.com/inconshreveable/mousetrap v1.1.0 // indirect
Expand Down
8 changes: 6 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
github.com/cpuguy83/go-md2man/v2 v2.0.6/go.mod h1:oOW0eioCTA6cOiMLiUPZOpcVxMig6NIQQ7OS05n1F4g=
github.com/cucumber/gherkin/go/v26 v26.2.0 h1:EgIjePLWiPeslwIWmNQ3XHcypPsWAHoMCz/YEBKP4GI=
github.com/cucumber/gherkin/go/v26 v26.2.0/go.mod h1:t2GAPnB8maCT4lkHL99BDCVNzCh1d7dBhCLt150Nr/0=
github.com/cucumber/gherkin/go/v39 v39.1.0 h1:qzKQo4fgbafDosC7pDuvBMxShAlkOVYC650A9EwY3eI=
github.com/cucumber/gherkin/go/v39 v39.1.0/go.mod h1:Ja80ETUq4VNJBls36oXe7U7UuD0lVQ4tu4q/9Jm1jmM=
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/cucumber/messages/go/v32 v32.3.1 h1:2vsnW0nFvpkp8IYaoFSHcV+H0l0lWZL9AZ9gBxXR6Hc=
github.com/cucumber/messages/go/v32 v32.3.1/go.mod h1:WxmdIwGfNiDJoFXR4FCozmLysaH3k96KkxZeM/yMFVs=
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.3.1+incompatible h1:0/KbAdpx3UXAx1kEOWHJeOkpbgRFGHVgv+CFIY7dBJI=
github.com/gofrs/uuid v4.3.1+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc=
github.com/hashicorp/go-immutable-radix v1.3.1/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
github.com/hashicorp/go-memdb v1.3.5 h1:b3taDMxCBCBVgyRrS1AZVHO14ubMYZB++QpNhBg+Nyo=
Expand Down
2 changes: 1 addition & 1 deletion internal/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"strconv"
"strings"

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

"github.com/cucumber/godog/internal/flags"
Expand Down Expand Up @@ -50,7 +50,7 @@
gherkinDocument.Uri = path
pickles := gherkin.Pickles(*gherkinDocument, path, newIDFunc)

f := models.Feature{GherkinDocument: gherkinDocument, Pickles: pickles, Content: buf.Bytes()}

Check failure on line 53 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 53 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal

Check failure on line 53 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 53 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal
return &f, nil
}

Expand All @@ -66,7 +66,7 @@
gherkinDocument.Uri = path
pickles := gherkin.Pickles(*gherkinDocument, path, newIDFunc)

f := models.Feature{GherkinDocument: gherkinDocument, Pickles: pickles, Content: buf.Bytes()}

Check failure on line 69 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 69 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal

Check failure on line 69 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 69 in internal/parser/parser.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal
return &f, nil
}

Expand Down
2 changes: 1 addition & 1 deletion internal/testutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"strings"
"testing"

gherkin "github.com/cucumber/gherkin/go/v26"
gherkin "github.com/cucumber/gherkin/go/v39"
messages "github.com/cucumber/messages/go/v21"
"github.com/stretchr/testify/require"

Expand All @@ -27,7 +27,7 @@
gherkinDocument.Uri = path
pickles := gherkin.Pickles(*gherkinDocument, path, newIDFunc)

ft := models.Feature{GherkinDocument: gherkinDocument, Pickles: pickles, Content: []byte(featureContent)}

Check failure on line 30 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 30 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal

Check failure on line 30 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 30 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal
require.Len(t, ft.Pickles, 2)

require.Len(t, ft.Pickles[0].AstNodeIds, 1)
Expand Down Expand Up @@ -75,7 +75,7 @@
gherkinDocument.Uri = path
pickles := gherkin.Pickles(*gherkinDocument, path, newIDFunc)

ft := models.Feature{GherkinDocument: gherkinDocument, Pickles: pickles, Content: []byte(featureWithRuleContent)}

Check failure on line 78 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 78 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal

Check failure on line 78 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v32".Pickle) as []*"github.com/cucumber/messages/go/v21".Pickle value in struct literal

Check failure on line 78 in internal/testutils/utils.go

View workflow job for this annotation

GitHub Actions / test (oldstable)

cannot use gherkinDocument (variable of type *"github.com/cucumber/messages/go/v32".GherkinDocument) as *"github.com/cucumber/messages/go/v21".GherkinDocument value in struct literal
require.Len(t, ft.Pickles, 2)

require.Len(t, ft.Pickles[0].AstNodeIds, 1)
Expand Down
2 changes: 1 addition & 1 deletion run_progress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

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

gherkin "github.com/cucumber/gherkin/go/v26"
gherkin "github.com/cucumber/gherkin/go/v39"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"

Expand Down
2 changes: 1 addition & 1 deletion run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"testing"
"testing/fstest"

gherkin "github.com/cucumber/gherkin/go/v26"
gherkin "github.com/cucumber/gherkin/go/v39"
messages "github.com/cucumber/messages/go/v21"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
2 changes: 1 addition & 1 deletion suite_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"testing"
"time"

gherkin "github.com/cucumber/gherkin/go/v26"
gherkin "github.com/cucumber/gherkin/go/v39"
messages "github.com/cucumber/messages/go/v21"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
Expand Down
Loading