Skip to content

Commit

Permalink
Bump github.com/fxamacker/cbor from 1.5.1 to 2.6.0 (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan authored Feb 20, 2024
1 parent 9dfa2c5 commit a99c328
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.20

require (
github.com/antchfx/xpath v1.2.5
github.com/fxamacker/cbor v1.5.1
github.com/fxamacker/cbor/v2 v2.6.0
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da
github.com/golang/protobuf v1.5.3
github.com/stretchr/testify v1.8.4
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ github.com/antchfx/xpath v1.2.5 h1:hqZ+wtQ+KIOV/S3bGZcIhpgYC26um2bZYP2KVGcR7VY=
github.com/antchfx/xpath v1.2.5/go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs=
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/fxamacker/cbor v1.5.1 h1:XjQWBgdmQyqimslUh5r4tUGmoqzHmBFQOImkWGi2awg=
github.com/fxamacker/cbor v1.5.1/go.mod h1:3aPGItF174ni7dDzd6JZ206H8cmr4GDNBGpPa971zsU=
github.com/fxamacker/cbor/v2 v2.6.0 h1:sU6J2usfADwWlYDAFhZBQ6TnLFBHxgesMrQfQgk1tWA=
github.com/fxamacker/cbor/v2 v2.6.0/go.mod h1:pxXPTn3joSm21Gbwsv0w9OSA2y1HFR9qXEeXQVeNoDQ=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
Expand Down
2 changes: 1 addition & 1 deletion node.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"sort"
"strings"

"github.com/fxamacker/cbor"
"github.com/fxamacker/cbor/v2"
)

type keyValue struct {
Expand Down
8 changes: 4 additions & 4 deletions node_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"bytes"
"testing"

"github.com/fxamacker/cbor"
"github.com/fxamacker/cbor/v2"
"github.com/stretchr/testify/require"

"github.com/srebhan/cborquery/testcases/addressbook"
Expand Down Expand Up @@ -58,7 +58,7 @@ var addressbookSample = &addressbook.AddressBook{
}

func TestParseAddressBookXML(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand All @@ -77,7 +77,7 @@ func TestNumericKeys(t *testing.T) {
3.14: 42.3,
"test": 23,
}
msg, err := cbor.Marshal(test, cbor.EncOptions{})
msg, err := cbor.Marshal(test)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand Down Expand Up @@ -107,7 +107,7 @@ func TestArray(t *testing.T) {
99: 3.1415,
},
}
msg, err := cbor.Marshal(test, cbor.EncOptions{})
msg, err := cbor.Marshal(test)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand Down
20 changes: 10 additions & 10 deletions query_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"testing"

"github.com/antchfx/xpath"
"github.com/fxamacker/cbor"
"github.com/fxamacker/cbor/v2"
"github.com/stretchr/testify/require"
)

Expand All @@ -34,7 +34,7 @@ func BenchmarkDisableSelectorCache(b *testing.B) {
}

func TestNavigator(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand Down Expand Up @@ -78,7 +78,7 @@ func TestNavigator(t *testing.T) {
}

func TestQueryNames(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand Down Expand Up @@ -116,7 +116,7 @@ func TestQueryNames(t *testing.T) {
}

func TestQueryPhoneNumberFirst(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand All @@ -137,7 +137,7 @@ func TestQueryPhoneNumberFirst(t *testing.T) {
}

func TestQueryPhoneNumberLast(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand All @@ -158,7 +158,7 @@ func TestQueryPhoneNumberLast(t *testing.T) {
}

func TestQueryPhoneNoEmail(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand All @@ -172,7 +172,7 @@ func TestQueryPhoneNoEmail(t *testing.T) {
}

func TestQueryPhoneAge(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand All @@ -193,7 +193,7 @@ func TestQueryPhoneAge(t *testing.T) {
}

func TestQueryJack(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand All @@ -210,7 +210,7 @@ func TestQueryJack(t *testing.T) {
}

func TestQueryExample(t *testing.T) {
msg, err := cbor.Marshal(addressbookSample, cbor.EncOptions{})
msg, err := cbor.Marshal(addressbookSample)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand Down Expand Up @@ -252,7 +252,7 @@ func TestQueryNode(t *testing.T) {
266: false,
},
}
msg, err := cbor.Marshal(test, cbor.EncOptions{})
msg, err := cbor.Marshal(test)
require.NoError(t, err)

doc, err := Parse(bytes.NewBuffer(msg))
Expand Down

0 comments on commit a99c328

Please sign in to comment.