mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-30 17:00:57 -06:00
Bump gotest.tools/v3 from 3.5.0 to 3.5.1
Bumps [gotest.tools/v3](https://github.com/gotestyourself/gotest.tools) from 3.5.0 to 3.5.1. - [Release notes](https://github.com/gotestyourself/gotest.tools/releases) - [Commits](https://github.com/gotestyourself/gotest.tools/compare/v3.5.0...v3.5.1) --- updated-dependencies: - dependency-name: gotest.tools/v3 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
committed by
Ralf Haferkamp
parent
8b0217147a
commit
0dcc38a998
2
go.mod
2
go.mod
@@ -103,7 +103,7 @@ require (
|
||||
google.golang.org/protobuf v1.31.0
|
||||
gopkg.in/square/go-jose.v2 v2.6.0
|
||||
gopkg.in/yaml.v2 v2.4.0
|
||||
gotest.tools/v3 v3.5.0
|
||||
gotest.tools/v3 v3.5.1
|
||||
stash.kopano.io/kgol/oidc-go v0.3.4
|
||||
stash.kopano.io/kgol/rndm v1.1.2
|
||||
)
|
||||
|
||||
4
go.sum
4
go.sum
@@ -2964,8 +2964,8 @@ gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
|
||||
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
||||
gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo=
|
||||
gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw=
|
||||
gotest.tools/v3 v3.5.0 h1:Ljk6PdHdOhAb5aDMWXjDLMMhph+BpztA4v1QdqEW2eY=
|
||||
gotest.tools/v3 v3.5.0/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU=
|
||||
gotest.tools/v3 v3.5.1 h1:EENdUnS3pdur5nybKYIh2Vfgc8IUNBjxDPSjtiJcOzU=
|
||||
gotest.tools/v3 v3.5.1/go.mod h1:isy3WKz7GK6uNw/sbHzfKBLvlvXwUyV06n6brMxxopU=
|
||||
honnef.co/go/tools v0.0.0-20180728063816-88497007e858/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190102054323-c2f93a96b099/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
honnef.co/go/tools v0.0.0-20190106161140-3f1c8253044a/go.mod h1:rf3lG4BRIbNafJWhAfAdb/ePZxsR/4RtNHQocxwk9r4=
|
||||
|
||||
@@ -26,7 +26,7 @@ func RunComparison(
|
||||
return true
|
||||
}
|
||||
|
||||
if source.Update {
|
||||
if source.IsUpdate() {
|
||||
if updater, ok := result.(updateExpected); ok {
|
||||
const stackIndex = 3 // Assert/Check, assert, RunComparison
|
||||
err := updater.UpdatedExpected(stackIndex)
|
||||
|
||||
26
vendor/gotest.tools/v3/internal/source/update.go
vendored
26
vendor/gotest.tools/v3/internal/source/update.go
vendored
@@ -14,12 +14,32 @@ import (
|
||||
"strings"
|
||||
)
|
||||
|
||||
// Update is set by the -update flag. It indicates the user running the tests
|
||||
// would like to update any golden values.
|
||||
// IsUpdate is returns true if the -update flag is set. It indicates the user
|
||||
// running the tests would like to update any golden values.
|
||||
func IsUpdate() bool {
|
||||
if Update {
|
||||
return true
|
||||
}
|
||||
return flag.Lookup("update").Value.(flag.Getter).Get().(bool)
|
||||
}
|
||||
|
||||
// Update is a shim for testing, and for compatibility with the old -update-golden
|
||||
// flag.
|
||||
var Update bool
|
||||
|
||||
func init() {
|
||||
flag.BoolVar(&Update, "update", false, "update golden values")
|
||||
if f := flag.Lookup("update"); f != nil {
|
||||
getter, ok := f.Value.(flag.Getter)
|
||||
msg := "some other package defined an incompatible -update flag, expected a flag.Bool"
|
||||
if !ok {
|
||||
panic(msg)
|
||||
}
|
||||
if _, ok := getter.Get().(bool); !ok {
|
||||
panic(msg)
|
||||
}
|
||||
return
|
||||
}
|
||||
flag.Bool("update", false, "update golden values")
|
||||
}
|
||||
|
||||
// ErrNotFound indicates that UpdateExpectedValue failed to find the
|
||||
|
||||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@@ -2215,7 +2215,7 @@ gopkg.in/yaml.v2
|
||||
# gopkg.in/yaml.v3 v3.0.1
|
||||
## explicit
|
||||
gopkg.in/yaml.v3
|
||||
# gotest.tools/v3 v3.5.0
|
||||
# gotest.tools/v3 v3.5.1
|
||||
## explicit; go 1.17
|
||||
gotest.tools/v3/assert
|
||||
gotest.tools/v3/assert/cmp
|
||||
|
||||
Reference in New Issue
Block a user