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/v32"
)

type registeredFormatter struct {
Expand Down
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ require (
)

require (
github.com/cucumber/messages/go/v21 v21.0.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 All @@ -21,7 +23,7 @@ require (
)

require (
github.com/cucumber/messages/go/v21 v21.0.1
github.com/cucumber/messages/go/v32 v32.3.1
github.com/hashicorp/go-uuid v1.0.2 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
)
4 changes: 4 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@ github.com/cucumber/gherkin/go/v26 v26.2.0 h1:EgIjePLWiPeslwIWmNQ3XHcypPsWAHoMCz
github.com/cucumber/gherkin/go/v26 v26.2.0/go.mod h1:t2GAPnB8maCT4lkHL99BDCVNzCh1d7dBhCLt150Nr/0=
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/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/v32"

"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/v32"

"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/v32"
)

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/v32"
)

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/v32"
)

// 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/v32"
)

// 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/v32"
"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/v32"

"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/v32"
)

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/v32"
)

// 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/v32"
)

// 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/v32"

"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/v32"
)

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/v32"

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

// 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/v32"
)

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/v32"
"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 (oldstable)

cannot use pickles (variable of type []*"github.com/cucumber/messages/go/v21".Pickle) as []*"github.com/cucumber/messages/go/v32".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/v21".GherkinDocument) as *"github.com/cucumber/messages/go/v32".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/v21".Pickle) as []*"github.com/cucumber/messages/go/v32".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/v21".GherkinDocument) as *"github.com/cucumber/messages/go/v32".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/v21".Pickle) as []*"github.com/cucumber/messages/go/v32".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/v21".GherkinDocument) as *"github.com/cucumber/messages/go/v32".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/v21".Pickle) as []*"github.com/cucumber/messages/go/v32".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/v21".GherkinDocument) as *"github.com/cucumber/messages/go/v32".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.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/v32"

"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/v32"

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/v32"
"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/v32"

"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/v32"
"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/v32"

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