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
2 changes: 1 addition & 1 deletion formatters/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"io"
"regexp"

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

type registeredFormatter struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
)

require (
github.com/cucumber/messages/go/v21 v21.0.1
github.com/cucumber/messages/go/v30 v30.1.0
github.com/hashicorp/go-immutable-radix v1.3.1 // indirect
github.com/hashicorp/go-uuid v1.0.2 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
Expand Down
9 changes: 4 additions & 5 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ github.com/cucumber/gherkin/go/v26 v26.2.0/go.mod h1:t2GAPnB8maCT4lkHL99BDCVNzCh
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/v22 v22.0.0/go.mod h1:aZipXTKc0JnjCsXrJnuZpWhtay93k7Rn3Dee7iyPJjs=
github.com/cucumber/messages/go/v30 v30.1.0 h1:qfaouV3WRTUm28V0MSN3rN2wTbYp965sj8u1OXrz2aY=
github.com/cucumber/messages/go/v30 v30.1.0/go.mod h1:wlOH+//hhfGAlpK80QASRIRx/lVOZPnNB2o3sDWMcHo=
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.2.0+incompatible/go.mod h1:b2aQJv3Z4Fp6yNu3cdSllBxTCLRxnplIgP/c0N/04lM=
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.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60=
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=
Expand All @@ -34,10 +38,6 @@ github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQD
github.com/spf13/cobra v1.7.0 h1:hyqWnYt1ZQShIddO5kBpj3vu05/++x6tJ6dg8EC572I=
github.com/spf13/cobra v1.7.0/go.mod h1:uLxZILRyS/50WlhOIKD7W6V5bgeIt+4sICxh6uRMrb0=
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.7 h1:vN6T9TfwStFPFM5XzjsvmzZkLuaLX+HS+0SeFLRgU6M=
github.com/spf13/pflag v1.0.7/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.9 h1:9exaQaMOCwffKiiiYk6/BndUBv+iRViNW+4lEMi0PvY=
github.com/spf13/pflag v1.0.9/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/spf13/pflag v1.0.10 h1:4EBh2KAYBwaONj6b2Ye1GiHfwjqyROoF4RwYO+vPwFk=
github.com/spf13/pflag v1.0.10/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
Expand All @@ -47,7 +47,6 @@ github.com/stretchr/objx v0.5.2/go.mod h1:FRsXN1f5AsAjCGJKqEizvkpNtU+EGNCLh3NxZ/
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

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

"github.com/cucumber/godog/colors"
"github.com/cucumber/godog/internal/models"
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_base.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"sync"
"unicode"

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

"github.com/cucumber/godog/colors"
"github.com/cucumber/godog/formatters"
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_cucumber.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (

"github.com/cucumber/godog/formatters"
"github.com/cucumber/godog/internal/models"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_events.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/cucumber/godog/formatters"
"github.com/cucumber/godog/internal/utils"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

const nanoSec = 1000000
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_flushwrap.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"sync"

"github.com/cucumber/godog/formatters"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

// WrapOnFlush wrap a `formatters.Formatter` in a `formatters.FlushFormatter`, which only
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_multi.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (

"github.com/cucumber/godog/formatters"
"github.com/cucumber/godog/internal/storage"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

// MultiFormatter passes test progress to multiple formatters.
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_multi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

"github.com/cucumber/godog/formatters"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
"github.com/stretchr/testify/assert"
)

Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_pretty.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"unicode/utf8"

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

"github.com/cucumber/godog/colors"
"github.com/cucumber/godog/formatters"
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/fmt_progress.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"

"github.com/cucumber/godog/formatters"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

func init() {
Expand Down
2 changes: 1 addition & 1 deletion internal/formatters/undefined_snippets_gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"strings"
"text/template"

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

// some snippet formatting regexps
Expand Down
2 changes: 1 addition & 1 deletion internal/models/feature.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package models

import (
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

// Feature is an internal object to group together
Expand Down
2 changes: 1 addition & 1 deletion internal/models/stepdef.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"reflect"
"strconv"

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

"github.com/cucumber/godog/formatters"
)
Expand Down
2 changes: 1 addition & 1 deletion internal/models/stepdef_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/cucumber/godog"
"github.com/cucumber/godog/formatters"
"github.com/cucumber/godog/internal/models"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

type ctxKey string
Expand Down
2 changes: 1 addition & 1 deletion internal/parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"strings"

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

"github.com/cucumber/godog/internal/flags"
"github.com/cucumber/godog/internal/models"
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/v21".Pickle) as []*"github.com/cucumber/messages/go/v30".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/v21".GherkinDocument) as *"github.com/cucumber/messages/go/v30".GherkinDocument value in struct literal

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

View workflow job for this annotation

GitHub Actions / test (1.17.x)

cannot use pickles (type []*"github.com/cucumber/messages/go/v21".Pickle) as type []*"github.com/cucumber/messages/go/v30".Pickle in field value

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

View workflow job for this annotation

GitHub Actions / test (1.17.x)

cannot use gherkinDocument (type *"github.com/cucumber/messages/go/v21".GherkinDocument) as type *"github.com/cucumber/messages/go/v30".GherkinDocument in field value
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/v21".Pickle) as []*"github.com/cucumber/messages/go/v30".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/v21".GherkinDocument) as *"github.com/cucumber/messages/go/v30".GherkinDocument value in struct literal

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

View workflow job for this annotation

GitHub Actions / test (1.17.x)

cannot use pickles (type []*"github.com/cucumber/messages/go/v21".Pickle) as type []*"github.com/cucumber/messages/go/v30".Pickle in field value

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

View workflow job for this annotation

GitHub Actions / test (1.17.x)

cannot use gherkinDocument (type *"github.com/cucumber/messages/go/v21".GherkinDocument) as type *"github.com/cucumber/messages/go/v30".GherkinDocument in field value
return &f, nil
}

Expand Down
2 changes: 1 addition & 1 deletion internal/storage/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"sync"

messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
"github.com/hashicorp/go-memdb"

"github.com/cucumber/godog/internal/models"
Expand Down
2 changes: 1 addition & 1 deletion internal/storage/storage_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
"github.com/stretchr/testify/assert"

"github.com/cucumber/godog/internal/models"
Expand Down
2 changes: 1 addition & 1 deletion internal/tags/tag_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package tags
import (
"strings"

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

// ApplyTagFilter will apply a filter string on the
Expand Down
2 changes: 1 addition & 1 deletion internal/tags/tag_filter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"github.com/stretchr/testify/assert"

"github.com/cucumber/godog/internal/tags"
messages "github.com/cucumber/messages/go/v21"
messages "github.com/cucumber/messages/go/v30"
)

type tag = messages.PickleTag
Expand Down
2 changes: 1 addition & 1 deletion internal/testutils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"testing"

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

"github.com/cucumber/godog/internal/models"
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 (1.17.x)

cannot use pickles (type []*"github.com/cucumber/messages/go/v21".Pickle) as type []*"github.com/cucumber/messages/go/v30".Pickle in field value

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

View workflow job for this annotation

GitHub Actions / test (1.17.x)

cannot use gherkinDocument (type *"github.com/cucumber/messages/go/v21".GherkinDocument) as type *"github.com/cucumber/messages/go/v30".GherkinDocument in field value
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 (1.17.x)

cannot use pickles (type []*"github.com/cucumber/messages/go/v21".Pickle) as type []*"github.com/cucumber/messages/go/v30".Pickle in field value

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

View workflow job for this annotation

GitHub Actions / test (1.17.x)

cannot use gherkinDocument (type *"github.com/cucumber/messages/go/v21".GherkinDocument) as type *"github.com/cucumber/messages/go/v30".GherkinDocument in field value
require.Len(t, ft.Pickles, 2)

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

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

"github.com/cucumber/godog/colors"
"github.com/cucumber/godog/formatters"
Expand Down
2 changes: 1 addition & 1 deletion run_progress_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
"testing"

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

gherkin "github.com/cucumber/gherkin/go/v26"
"github.com/stretchr/testify/assert"
Expand Down
2 changes: 1 addition & 1 deletion run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
"testing/fstest"

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

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

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

"github.com/cucumber/godog/formatters"
"github.com/cucumber/godog/internal/models"
Expand Down
2 changes: 1 addition & 1 deletion suite_context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import (
"time"

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

Expand Down
2 changes: 1 addition & 1 deletion test_context.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"regexp"
"runtime"

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

"github.com/cucumber/godog/formatters"
"github.com/cucumber/godog/internal/builder"
Expand Down
Loading