Skip to content

Commit 7892f09

Browse files
committed
Test on Go 1.26; upgrade testify
1 parent b6f6faa commit 7892f09

5 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
strategy:
88
matrix:
99
os: [[🐧, Ubuntu], [🍎, macOS], [🪟, Windows]]
10-
go: ["1.25", "1.24", "1.23"]
10+
go: ["1.26", "1.25", "1.24", "1.23"]
1111
name: ${{ matrix.os[0] }} Test Go ${{ matrix.go }} on ${{ matrix.os[1] }}
1212
runs-on: ${{ matrix.os[1] }}-latest
1313
steps:

compare/compare_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
//go:build compare
22

3-
// Package compare tests theory/jsonpath against the [json-path-comparison]
3+
// Package compare tests theory/jsonpath against the [json-path-comparison]
44
// project's regression suite. It requires the file regression_suite.yaml to
55
// be in this directory. The test only runs with the "compare" tag. Use make
66
// for the easiest way to download regression_suite.yaml and run the tests:

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module github.com/theory/jsonpath
33
go 1.23
44

55
require (
6-
github.com/stretchr/testify v1.10.0
6+
github.com/stretchr/testify v1.11.1
77
gopkg.in/yaml.v3 v3.0.1
88
)
99

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZN
1414
github.com/rogpeppe/go-internal v1.6.1/go.mod h1:xXDCJY+GAPziupqXw64V24skbSoqbTEfhy4qGm1nDQc=
1515
github.com/rogpeppe/go-internal v1.12.0 h1:exVL4IDcn6na9z1rAb56Vxr+CgyK3nn3O+epU5NdKM8=
1616
github.com/rogpeppe/go-internal v1.12.0/go.mod h1:E+RYuTGaKKdloAfM02xzb0FW3Paa99yedzYV+kq4uf4=
17-
github.com/stretchr/testify v1.10.0 h1:Xv5erBjTwe/5IxqUQTdXv5kgmIvbHo3QQyRwhJsOfJA=
18-
github.com/stretchr/testify v1.10.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY=
17+
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
18+
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
1919
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2020
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
2121
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk=

spec/selector.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ func Slice(args ...any) SliceSelector {
294294
s := SliceSelector{0, math.MaxInt, 1}
295295
switch len(args) - 1 {
296296
case stepArg:
297-
//nolint:gosec // disable G602 https://github.com/securego/gosec/issues/1250
297+
298298
switch step := args[stepArg].(type) {
299299
case int:
300300
s.step = step

0 commit comments

Comments
 (0)