Skip to content

Commit

Permalink
Merge pull request #217 from thaJeztah/bump_deps
Browse files Browse the repository at this point in the history
go.mod: update dependencies
  • Loading branch information
dnephin committed Mar 14, 2021
2 parents 3fcbc0e + 77bb3d3 commit c280cb4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
12 changes: 7 additions & 5 deletions assert/opt/opt_test.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package opt

import (
"sort"
"testing"
"time"

Expand Down Expand Up @@ -167,6 +168,7 @@ func (p *pathRecorder) record(path gocmp.Path) bool {
func matchPaths(fixture interface{}, filter func(gocmp.Path) bool) []string {
rec := &pathRecorder{filter: filter}
gocmp.Equal(fixture, fixture, gocmp.FilterPath(rec.record, gocmp.Ignore()))
sort.Strings(rec.matches)
return rec.matches
}

Expand Down Expand Up @@ -236,15 +238,15 @@ func TestPathField(t *testing.T) {
filter := PathField(nodeValue{}, "Value")
matches := matchPaths(fixture, filter)
expected := []string{
"{opt.node}.Value.Value",
"{opt.node}.Children[0].Value.Value",
"{opt.node}.Children[1].Value.Value",
"{opt.node}.Children[2].Value.Value",
"{opt.node}.Children[2].Ref.Value.Value",
"{opt.node}.Children[0].Value.Value",
"{opt.node}.Children[1].Value.Value",
"{opt.node}.Children[2].Value.Value",
"{opt.node}.Children[1].Value.Value",
"{opt.node}.Children[2].Ref.Value.Value",
"{opt.node}.Children[2].Ref.Value.Value",
"{opt.node}.Children[2].Value.Value",
"{opt.node}.Children[2].Value.Value",
"{opt.node}.Value.Value",
}
assert.DeepEqual(t, matches, expected)
}
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module gotest.tools/v3

require (
github.com/google/go-cmp v0.4.0
github.com/pkg/errors v0.8.1
github.com/google/go-cmp v0.5.5
github.com/pkg/errors v0.9.1
github.com/spf13/pflag v1.0.3
golang.org/x/tools v0.0.0-20190624222133-a101b041ded4
)
Expand Down
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4=
github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/pkg/errors v0.8.1 h1:iURUrRGxPUNPdy5/HRSm+Yj6okJ6UtLINN0Q9M4+h3I=
github.com/pkg/errors v0.8.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/google/go-cmp v0.5.5 h1:Khx7svrCpmxxtHBq5j2mp/xVjsi8hQMfNLvJFAlrGgU=
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
github.com/spf13/pflag v1.0.3 h1:zPAT6CGy6wXeQ7NtTnaTerfKOsV6V6F8agHXFiazDkg=
github.com/spf13/pflag v1.0.3/go.mod h1:DYY7MBk1bdzusC3SYhjObp+wFpr4gzcvqqNjLnInEg4=
golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
Expand Down

0 comments on commit c280cb4

Please sign in to comment.