mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-04-11 18:13:00 +00:00
rebase: bump github.com/onsi/ginkgo/v2
Bumps the github-dependencies group in /e2e with 1 update: [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo). Updates `github.com/onsi/ginkgo/v2` from 2.22.2 to 2.23.0 - [Release notes](https://github.com/onsi/ginkgo/releases) - [Changelog](https://github.com/onsi/ginkgo/blob/master/CHANGELOG.md) - [Commits](https://github.com/onsi/ginkgo/compare/v2.22.2...v2.23.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-dependencies ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
5cf650fa3a
commit
e536333e4c
@ -14,7 +14,7 @@ require (
|
|||||||
github.com/ceph/ceph-csi v0.0.0-00010101000000-000000000000
|
github.com/ceph/ceph-csi v0.0.0-00010101000000-000000000000
|
||||||
github.com/ceph/ceph-csi/api v0.0.0-00010101000000-000000000000
|
github.com/ceph/ceph-csi/api v0.0.0-00010101000000-000000000000
|
||||||
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0
|
github.com/kubernetes-csi/external-snapshotter/client/v8 v8.2.0
|
||||||
github.com/onsi/ginkgo/v2 v2.22.2
|
github.com/onsi/ginkgo/v2 v2.23.0
|
||||||
github.com/onsi/gomega v1.36.2
|
github.com/onsi/gomega v1.36.2
|
||||||
k8s.io/api v0.32.2
|
k8s.io/api v0.32.2
|
||||||
k8s.io/apimachinery v0.32.2
|
k8s.io/apimachinery v0.32.2
|
||||||
@ -123,7 +123,7 @@ require (
|
|||||||
golang.org/x/term v0.29.0 // indirect
|
golang.org/x/term v0.29.0 // indirect
|
||||||
golang.org/x/text v0.22.0 // indirect
|
golang.org/x/text v0.22.0 // indirect
|
||||||
golang.org/x/time v0.8.0 // indirect
|
golang.org/x/time v0.8.0 // indirect
|
||||||
golang.org/x/tools v0.28.0 // indirect
|
golang.org/x/tools v0.30.0 // indirect
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20241202173237-19429a94021a // indirect
|
google.golang.org/genproto/googleapis/api v0.0.0-20241202173237-19429a94021a // indirect
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 // indirect
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20241216192217-9240e9c98484 // indirect
|
||||||
google.golang.org/grpc v1.70.0 // indirect
|
google.golang.org/grpc v1.70.0 // indirect
|
||||||
|
@ -156,8 +156,8 @@ github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 h1:C3w9PqII01/Oq
|
|||||||
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822/go.mod h1:+n7T8mK8HuQTcFwEeznm/DIxMOiR9yIdICNftLE1DvQ=
|
||||||
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=
|
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f h1:y5//uYreIhSUg3J1GEMiLbxo1LJaP8RfCpH6pymGZus=
|
||||||
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
|
github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+o7JKHSa8/e818NopupXU1YMK5fe1lsApnBw=
|
||||||
github.com/onsi/ginkgo/v2 v2.22.2 h1:/3X8Panh8/WwhU/3Ssa6rCKqPLuAkVY2I0RoyDLySlU=
|
github.com/onsi/ginkgo/v2 v2.23.0 h1:FA1xjp8ieYDzlgS5ABTpdUDB7wtngggONc8a7ku2NqQ=
|
||||||
github.com/onsi/ginkgo/v2 v2.22.2/go.mod h1:oeMosUL+8LtarXBHu/c0bx2D/K9zyQ6uX3cTyztHwsk=
|
github.com/onsi/ginkgo/v2 v2.23.0/go.mod h1:zXTP6xIp3U8aVuXN8ENK9IXRaTjFnpVB9mGmaSRvxnM=
|
||||||
github.com/onsi/gomega v1.36.2 h1:koNYke6TVk6ZmnyHrCXba/T/MoLBXFjeC1PtvYgw0A8=
|
github.com/onsi/gomega v1.36.2 h1:koNYke6TVk6ZmnyHrCXba/T/MoLBXFjeC1PtvYgw0A8=
|
||||||
github.com/onsi/gomega v1.36.2/go.mod h1:DdwyADRjrc825LhMEkD76cHR5+pUnjhUN8GlHlRPHzY=
|
github.com/onsi/gomega v1.36.2/go.mod h1:DdwyADRjrc825LhMEkD76cHR5+pUnjhUN8GlHlRPHzY=
|
||||||
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
||||||
@ -300,8 +300,8 @@ golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGm
|
|||||||
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo=
|
||||||
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
golang.org/x/tools v0.0.0-20200619180055-7c47624df98f/go.mod h1:EkVYQZoAsY45+roYkvgYkIh4xh/qjgUK9TdY2XT94GE=
|
||||||
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
golang.org/x/tools v0.0.0-20210106214847-113979e3529a/go.mod h1:emZCQorbCU4vsT4fOWvOPXz4eW1wZW4PmDk9uLelYpA=
|
||||||
golang.org/x/tools v0.28.0 h1:WuB6qZ4RPCQo5aP3WdKZS7i595EdWqWR8vqJTlwTVK8=
|
golang.org/x/tools v0.30.0 h1:BgcpHewrV5AUp2G9MebG4XPFI1E2W41zU1SaqVA9vJY=
|
||||||
golang.org/x/tools v0.28.0/go.mod h1:dcIOrVd3mfQKTgrDVQHqCPMWy6lnhfhtX3hLXYVLfRw=
|
golang.org/x/tools v0.30.0/go.mod h1:c347cR/OJfw5TI+GfX7RUPNMdDRRbjvYTS0jPyvsVtY=
|
||||||
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
|
||||||
|
25
e2e/vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
25
e2e/vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
@ -1,3 +1,26 @@
|
|||||||
|
## 2.23.0
|
||||||
|
|
||||||
|
Ginkgo 2.23.0 adds a handful of methods to `GinkgoT()` to make it compatible with the `testing.TB` interface in Go 1.24. `GinkgoT().Context()`, in particular, is a useful shorthand for generating a new context that will clean itself up in a `DeferCleanup()`. This has subtle behavior differences from the golang implementation but should make sense in a Ginkgo... um... context.
|
||||||
|
|
||||||
|
### Features
|
||||||
|
- bump to go 1.24.0 - support new testing.TB methods and add a test to cover testing.TB regressions [37a511b]
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- fix edge case where build -o is pointing at an explicit file, not a directory [7556a86]
|
||||||
|
- Fix binary paths when precompiling multiple suites. [4df06c6]
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
- Fix: Correct Markdown list rendering in MIGRATING_TO_V2.md [cbcf39a]
|
||||||
|
- docs: fix test workflow badge (#1512) [9b261ff]
|
||||||
|
- Bump golang.org/x/net in /integration/_fixtures/version_mismatch_fixture (#1516) [00f19c8]
|
||||||
|
- Bump golang.org/x/tools from 0.28.0 to 0.30.0 (#1515) [e98a4df]
|
||||||
|
- Bump activesupport from 6.0.6.1 to 6.1.7.5 in /docs (#1504) [60cc4e2]
|
||||||
|
- Bump github-pages from 231 to 232 in /docs (#1447) [fea6f2d]
|
||||||
|
- Bump rexml from 3.2.8 to 3.3.9 in /docs (#1497) [31d7813]
|
||||||
|
- Bump webrick from 1.8.1 to 1.9.1 in /docs (#1501) [fc3bbd6]
|
||||||
|
- Code linting (#1500) [aee0d56]
|
||||||
|
- change interface{} to any (#1502) [809a710]
|
||||||
|
|
||||||
## 2.22.2
|
## 2.22.2
|
||||||
|
|
||||||
### Maintenance
|
### Maintenance
|
||||||
@ -630,7 +653,7 @@ Ginkgo also uses this progress reporting infrastructure under the hood when hand
|
|||||||
### Features
|
### Features
|
||||||
- `BeforeSuite`, `AfterSuite`, `SynchronizedBeforeSuite`, `SynchronizedAfterSuite`, and `ReportAfterSuite` now support (the relevant subset of) decorators. These can be passed in _after_ the callback functions that are usually passed into these nodes.
|
- `BeforeSuite`, `AfterSuite`, `SynchronizedBeforeSuite`, `SynchronizedAfterSuite`, and `ReportAfterSuite` now support (the relevant subset of) decorators. These can be passed in _after_ the callback functions that are usually passed into these nodes.
|
||||||
|
|
||||||
As a result the **signature of these methods has changed** and now includes a trailing `args ...interface{}`. For most users simply using the DSL, this change is transparent. However if you were assigning one of these functions to a custom variable (or passing it around) then your code may need to change to reflect the new signature.
|
As a result the **signature of these methods has changed** and now includes a trailing `args ...any`. For most users simply using the DSL, this change is transparent. However if you were assigning one of these functions to a custom variable (or passing it around) then your code may need to change to reflect the new signature.
|
||||||
|
|
||||||
### Maintenance
|
### Maintenance
|
||||||
- Modernize the invocation of Ginkgo in github actions [0ffde58]
|
- Modernize the invocation of Ginkgo in github actions [0ffde58]
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/README.md
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/README.md
generated
vendored
@ -1,6 +1,6 @@
|
|||||||

|

|
||||||
|
|
||||||
[](https://github.com/onsi/ginkgo/actions?query=workflow%3Atest+branch%3Amaster) | [Ginkgo Docs](https://onsi.github.io/ginkgo/)
|
[](https://github.com/onsi/ginkgo/actions?query=workflow%3Atest+branch%3Amaster) | [Ginkgo Docs](https://onsi.github.io/ginkgo/)
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
58
e2e/vendor/github.com/onsi/ginkgo/v2/core_dsl.go
generated
vendored
58
e2e/vendor/github.com/onsi/ginkgo/v2/core_dsl.go
generated
vendored
@ -83,9 +83,9 @@ func exitIfErrors(errors []error) {
|
|||||||
type GinkgoWriterInterface interface {
|
type GinkgoWriterInterface interface {
|
||||||
io.Writer
|
io.Writer
|
||||||
|
|
||||||
Print(a ...interface{})
|
Print(a ...any)
|
||||||
Printf(format string, a ...interface{})
|
Printf(format string, a ...any)
|
||||||
Println(a ...interface{})
|
Println(a ...any)
|
||||||
|
|
||||||
TeeTo(writer io.Writer)
|
TeeTo(writer io.Writer)
|
||||||
ClearTeeWriters()
|
ClearTeeWriters()
|
||||||
@ -243,7 +243,7 @@ for more on how specs are parallelized in Ginkgo.
|
|||||||
|
|
||||||
You can also pass suite-level Label() decorators to RunSpecs. The passed-in labels will apply to all specs in the suite.
|
You can also pass suite-level Label() decorators to RunSpecs. The passed-in labels will apply to all specs in the suite.
|
||||||
*/
|
*/
|
||||||
func RunSpecs(t GinkgoTestingT, description string, args ...interface{}) bool {
|
func RunSpecs(t GinkgoTestingT, description string, args ...any) bool {
|
||||||
if suiteDidRun {
|
if suiteDidRun {
|
||||||
exitIfErr(types.GinkgoErrors.RerunningSuite())
|
exitIfErr(types.GinkgoErrors.RerunningSuite())
|
||||||
}
|
}
|
||||||
@ -316,7 +316,7 @@ func RunSpecs(t GinkgoTestingT, description string, args ...interface{}) bool {
|
|||||||
return passed
|
return passed
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractSuiteConfiguration(args []interface{}) Labels {
|
func extractSuiteConfiguration(args []any) Labels {
|
||||||
suiteLabels := Labels{}
|
suiteLabels := Labels{}
|
||||||
configErrors := []error{}
|
configErrors := []error{}
|
||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
@ -491,14 +491,14 @@ to Describe the behavior of an object or function and, within that Describe, out
|
|||||||
You can learn more at https://onsi.github.io/ginkgo/#organizing-specs-with-container-nodes
|
You can learn more at https://onsi.github.io/ginkgo/#organizing-specs-with-container-nodes
|
||||||
In addition, container nodes can be decorated with a variety of decorators. You can learn more here: https://onsi.github.io/ginkgo/#decorator-reference
|
In addition, container nodes can be decorated with a variety of decorators. You can learn more here: https://onsi.github.io/ginkgo/#decorator-reference
|
||||||
*/
|
*/
|
||||||
func Describe(text string, args ...interface{}) bool {
|
func Describe(text string, args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, text, args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FDescribe focuses specs within the Describe block.
|
FDescribe focuses specs within the Describe block.
|
||||||
*/
|
*/
|
||||||
func FDescribe(text string, args ...interface{}) bool {
|
func FDescribe(text string, args ...any) bool {
|
||||||
args = append(args, internal.Focus)
|
args = append(args, internal.Focus)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, text, args...))
|
||||||
}
|
}
|
||||||
@ -506,7 +506,7 @@ func FDescribe(text string, args ...interface{}) bool {
|
|||||||
/*
|
/*
|
||||||
PDescribe marks specs within the Describe block as pending.
|
PDescribe marks specs within the Describe block as pending.
|
||||||
*/
|
*/
|
||||||
func PDescribe(text string, args ...interface{}) bool {
|
func PDescribe(text string, args ...any) bool {
|
||||||
args = append(args, internal.Pending)
|
args = append(args, internal.Pending)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, text, args...))
|
||||||
}
|
}
|
||||||
@ -522,18 +522,18 @@ var XDescribe = PDescribe
|
|||||||
var Context, FContext, PContext, XContext = Describe, FDescribe, PDescribe, XDescribe
|
var Context, FContext, PContext, XContext = Describe, FDescribe, PDescribe, XDescribe
|
||||||
|
|
||||||
/* When is an alias for Describe - it generates the exact same kind of Container node */
|
/* When is an alias for Describe - it generates the exact same kind of Container node */
|
||||||
func When(text string, args ...interface{}) bool {
|
func When(text string, args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, "when "+text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, "when "+text, args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When is an alias for Describe - it generates the exact same kind of Container node */
|
/* When is an alias for Describe - it generates the exact same kind of Container node */
|
||||||
func FWhen(text string, args ...interface{}) bool {
|
func FWhen(text string, args ...any) bool {
|
||||||
args = append(args, internal.Focus)
|
args = append(args, internal.Focus)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, "when "+text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, "when "+text, args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
/* When is an alias for Describe - it generates the exact same kind of Container node */
|
/* When is an alias for Describe - it generates the exact same kind of Container node */
|
||||||
func PWhen(text string, args ...interface{}) bool {
|
func PWhen(text string, args ...any) bool {
|
||||||
args = append(args, internal.Pending)
|
args = append(args, internal.Pending)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, "when "+text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, "when "+text, args...))
|
||||||
}
|
}
|
||||||
@ -550,14 +550,14 @@ You can pass It nodes bare functions (func() {}) or functions that receive a Spe
|
|||||||
You can learn more at https://onsi.github.io/ginkgo/#spec-subjects-it
|
You can learn more at https://onsi.github.io/ginkgo/#spec-subjects-it
|
||||||
In addition, subject nodes can be decorated with a variety of decorators. You can learn more here: https://onsi.github.io/ginkgo/#decorator-reference
|
In addition, subject nodes can be decorated with a variety of decorators. You can learn more here: https://onsi.github.io/ginkgo/#decorator-reference
|
||||||
*/
|
*/
|
||||||
func It(text string, args ...interface{}) bool {
|
func It(text string, args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeIt, text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeIt, text, args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FIt allows you to focus an individual It.
|
FIt allows you to focus an individual It.
|
||||||
*/
|
*/
|
||||||
func FIt(text string, args ...interface{}) bool {
|
func FIt(text string, args ...any) bool {
|
||||||
args = append(args, internal.Focus)
|
args = append(args, internal.Focus)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeIt, text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeIt, text, args...))
|
||||||
}
|
}
|
||||||
@ -565,7 +565,7 @@ func FIt(text string, args ...interface{}) bool {
|
|||||||
/*
|
/*
|
||||||
PIt allows you to mark an individual It as pending.
|
PIt allows you to mark an individual It as pending.
|
||||||
*/
|
*/
|
||||||
func PIt(text string, args ...interface{}) bool {
|
func PIt(text string, args ...any) bool {
|
||||||
args = append(args, internal.Pending)
|
args = append(args, internal.Pending)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeIt, text, args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeIt, text, args...))
|
||||||
}
|
}
|
||||||
@ -611,8 +611,8 @@ BeforeSuite can take a func() body, or an interruptible func(SpecContext)/func(c
|
|||||||
You cannot nest any other Ginkgo nodes within a BeforeSuite node's closure.
|
You cannot nest any other Ginkgo nodes within a BeforeSuite node's closure.
|
||||||
You can learn more here: https://onsi.github.io/ginkgo/#suite-setup-and-cleanup-beforesuite-and-aftersuite
|
You can learn more here: https://onsi.github.io/ginkgo/#suite-setup-and-cleanup-beforesuite-and-aftersuite
|
||||||
*/
|
*/
|
||||||
func BeforeSuite(body interface{}, args ...interface{}) bool {
|
func BeforeSuite(body any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{body}
|
combinedArgs := []any{body}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeBeforeSuite, "", combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeBeforeSuite, "", combinedArgs...))
|
||||||
}
|
}
|
||||||
@ -630,8 +630,8 @@ AfterSuite can take a func() body, or an interruptible func(SpecContext)/func(co
|
|||||||
You cannot nest any other Ginkgo nodes within an AfterSuite node's closure.
|
You cannot nest any other Ginkgo nodes within an AfterSuite node's closure.
|
||||||
You can learn more here: https://onsi.github.io/ginkgo/#suite-setup-and-cleanup-beforesuite-and-aftersuite
|
You can learn more here: https://onsi.github.io/ginkgo/#suite-setup-and-cleanup-beforesuite-and-aftersuite
|
||||||
*/
|
*/
|
||||||
func AfterSuite(body interface{}, args ...interface{}) bool {
|
func AfterSuite(body any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{body}
|
combinedArgs := []any{body}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeAfterSuite, "", combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeAfterSuite, "", combinedArgs...))
|
||||||
}
|
}
|
||||||
@ -667,8 +667,8 @@ If either function receives a context.Context/SpecContext it is considered inter
|
|||||||
You cannot nest any other Ginkgo nodes within an SynchronizedBeforeSuite node's closure.
|
You cannot nest any other Ginkgo nodes within an SynchronizedBeforeSuite node's closure.
|
||||||
You can learn more, and see some examples, here: https://onsi.github.io/ginkgo/#parallel-suite-setup-and-cleanup-synchronizedbeforesuite-and-synchronizedaftersuite
|
You can learn more, and see some examples, here: https://onsi.github.io/ginkgo/#parallel-suite-setup-and-cleanup-synchronizedbeforesuite-and-synchronizedaftersuite
|
||||||
*/
|
*/
|
||||||
func SynchronizedBeforeSuite(process1Body interface{}, allProcessBody interface{}, args ...interface{}) bool {
|
func SynchronizedBeforeSuite(process1Body any, allProcessBody any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{process1Body, allProcessBody}
|
combinedArgs := []any{process1Body, allProcessBody}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
|
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeSynchronizedBeforeSuite, "", combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeSynchronizedBeforeSuite, "", combinedArgs...))
|
||||||
@ -687,8 +687,8 @@ Note that you can also use DeferCleanup() in SynchronizedBeforeSuite to accompli
|
|||||||
You cannot nest any other Ginkgo nodes within an SynchronizedAfterSuite node's closure.
|
You cannot nest any other Ginkgo nodes within an SynchronizedAfterSuite node's closure.
|
||||||
You can learn more, and see some examples, here: https://onsi.github.io/ginkgo/#parallel-suite-setup-and-cleanup-synchronizedbeforesuite-and-synchronizedaftersuite
|
You can learn more, and see some examples, here: https://onsi.github.io/ginkgo/#parallel-suite-setup-and-cleanup-synchronizedbeforesuite-and-synchronizedaftersuite
|
||||||
*/
|
*/
|
||||||
func SynchronizedAfterSuite(allProcessBody interface{}, process1Body interface{}, args ...interface{}) bool {
|
func SynchronizedAfterSuite(allProcessBody any, process1Body any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{allProcessBody, process1Body}
|
combinedArgs := []any{allProcessBody, process1Body}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
|
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeSynchronizedAfterSuite, "", combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeSynchronizedAfterSuite, "", combinedArgs...))
|
||||||
@ -703,7 +703,7 @@ BeforeEach can take a func() body, or an interruptible func(SpecContext)/func(co
|
|||||||
You cannot nest any other Ginkgo nodes within a BeforeEach node's closure.
|
You cannot nest any other Ginkgo nodes within a BeforeEach node's closure.
|
||||||
You can learn more here: https://onsi.github.io/ginkgo/#extracting-common-setup-beforeeach
|
You can learn more here: https://onsi.github.io/ginkgo/#extracting-common-setup-beforeeach
|
||||||
*/
|
*/
|
||||||
func BeforeEach(args ...interface{}) bool {
|
func BeforeEach(args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeBeforeEach, "", args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeBeforeEach, "", args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -716,7 +716,7 @@ JustBeforeEach can take a func() body, or an interruptible func(SpecContext)/fun
|
|||||||
You cannot nest any other Ginkgo nodes within a JustBeforeEach node's closure.
|
You cannot nest any other Ginkgo nodes within a JustBeforeEach node's closure.
|
||||||
You can learn more and see some examples here: https://onsi.github.io/ginkgo/#separating-creation-and-configuration-justbeforeeach
|
You can learn more and see some examples here: https://onsi.github.io/ginkgo/#separating-creation-and-configuration-justbeforeeach
|
||||||
*/
|
*/
|
||||||
func JustBeforeEach(args ...interface{}) bool {
|
func JustBeforeEach(args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeJustBeforeEach, "", args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeJustBeforeEach, "", args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -731,7 +731,7 @@ AfterEach can take a func() body, or an interruptible func(SpecContext)/func(con
|
|||||||
You cannot nest any other Ginkgo nodes within an AfterEach node's closure.
|
You cannot nest any other Ginkgo nodes within an AfterEach node's closure.
|
||||||
You can learn more here: https://onsi.github.io/ginkgo/#spec-cleanup-aftereach-and-defercleanup
|
You can learn more here: https://onsi.github.io/ginkgo/#spec-cleanup-aftereach-and-defercleanup
|
||||||
*/
|
*/
|
||||||
func AfterEach(args ...interface{}) bool {
|
func AfterEach(args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeAfterEach, "", args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeAfterEach, "", args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -743,7 +743,7 @@ JustAfterEach can take a func() body, or an interruptible func(SpecContext)/func
|
|||||||
You cannot nest any other Ginkgo nodes within a JustAfterEach node's closure.
|
You cannot nest any other Ginkgo nodes within a JustAfterEach node's closure.
|
||||||
You can learn more and see some examples here: https://onsi.github.io/ginkgo/#separating-diagnostics-collection-and-teardown-justaftereach
|
You can learn more and see some examples here: https://onsi.github.io/ginkgo/#separating-diagnostics-collection-and-teardown-justaftereach
|
||||||
*/
|
*/
|
||||||
func JustAfterEach(args ...interface{}) bool {
|
func JustAfterEach(args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeJustAfterEach, "", args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeJustAfterEach, "", args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -758,7 +758,7 @@ You cannot nest any other Ginkgo nodes within a BeforeAll node's closure.
|
|||||||
You can learn more about Ordered Containers at: https://onsi.github.io/ginkgo/#ordered-containers
|
You can learn more about Ordered Containers at: https://onsi.github.io/ginkgo/#ordered-containers
|
||||||
And you can learn more about BeforeAll at: https://onsi.github.io/ginkgo/#setup-in-ordered-containers-beforeall-and-afterall
|
And you can learn more about BeforeAll at: https://onsi.github.io/ginkgo/#setup-in-ordered-containers-beforeall-and-afterall
|
||||||
*/
|
*/
|
||||||
func BeforeAll(args ...interface{}) bool {
|
func BeforeAll(args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeBeforeAll, "", args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeBeforeAll, "", args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -775,7 +775,7 @@ You cannot nest any other Ginkgo nodes within an AfterAll node's closure.
|
|||||||
You can learn more about Ordered Containers at: https://onsi.github.io/ginkgo/#ordered-containers
|
You can learn more about Ordered Containers at: https://onsi.github.io/ginkgo/#ordered-containers
|
||||||
And you can learn more about AfterAll at: https://onsi.github.io/ginkgo/#setup-in-ordered-containers-beforeall-and-afterall
|
And you can learn more about AfterAll at: https://onsi.github.io/ginkgo/#setup-in-ordered-containers-beforeall-and-afterall
|
||||||
*/
|
*/
|
||||||
func AfterAll(args ...interface{}) bool {
|
func AfterAll(args ...any) bool {
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeAfterAll, "", args...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeAfterAll, "", args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -818,7 +818,7 @@ When DeferCleanup is called in BeforeSuite, SynchronizedBeforeSuite, AfterSuite,
|
|||||||
Note that DeferCleanup does not represent a node but rather dynamically generates the appropriate type of cleanup node based on the context in which it is called. As such you must call DeferCleanup within a Setup or Subject node, and not within a Container node.
|
Note that DeferCleanup does not represent a node but rather dynamically generates the appropriate type of cleanup node based on the context in which it is called. As such you must call DeferCleanup within a Setup or Subject node, and not within a Container node.
|
||||||
You can learn more about DeferCleanup here: https://onsi.github.io/ginkgo/#cleaning-up-our-cleanup-code-defercleanup
|
You can learn more about DeferCleanup here: https://onsi.github.io/ginkgo/#cleaning-up-our-cleanup-code-defercleanup
|
||||||
*/
|
*/
|
||||||
func DeferCleanup(args ...interface{}) {
|
func DeferCleanup(args ...any) {
|
||||||
fail := func(message string, cl types.CodeLocation) {
|
fail := func(message string, cl types.CodeLocation) {
|
||||||
global.Failer.Fail(message, cl)
|
global.Failer.Fail(message, cl)
|
||||||
}
|
}
|
||||||
|
8
e2e/vendor/github.com/onsi/ginkgo/v2/deprecated_dsl.go
generated
vendored
8
e2e/vendor/github.com/onsi/ginkgo/v2/deprecated_dsl.go
generated
vendored
@ -118,9 +118,9 @@ Use Gomega's gmeasure package instead.
|
|||||||
You can learn more here: https://onsi.github.io/ginkgo/#benchmarking-code
|
You can learn more here: https://onsi.github.io/ginkgo/#benchmarking-code
|
||||||
*/
|
*/
|
||||||
type Benchmarker interface {
|
type Benchmarker interface {
|
||||||
Time(name string, body func(), info ...interface{}) (elapsedTime time.Duration)
|
Time(name string, body func(), info ...any) (elapsedTime time.Duration)
|
||||||
RecordValue(name string, value float64, info ...interface{})
|
RecordValue(name string, value float64, info ...any)
|
||||||
RecordValueWithPrecision(name string, value float64, units string, precision int, info ...interface{})
|
RecordValueWithPrecision(name string, value float64, units string, precision int, info ...any)
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -129,7 +129,7 @@ Deprecated: Measure() has been removed from Ginkgo 2.0
|
|||||||
Use Gomega's gmeasure package instead.
|
Use Gomega's gmeasure package instead.
|
||||||
You can learn more here: https://onsi.github.io/ginkgo/#benchmarking-code
|
You can learn more here: https://onsi.github.io/ginkgo/#benchmarking-code
|
||||||
*/
|
*/
|
||||||
func Measure(_ ...interface{}) bool {
|
func Measure(_ ...any) bool {
|
||||||
deprecationTracker.TrackDeprecation(types.Deprecations.Measure(), types.NewCodeLocation(1))
|
deprecationTracker.TrackDeprecation(types.Deprecations.Measure(), types.NewCodeLocation(1))
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
12
e2e/vendor/github.com/onsi/ginkgo/v2/formatter/formatter.go
generated
vendored
12
e2e/vendor/github.com/onsi/ginkgo/v2/formatter/formatter.go
generated
vendored
@ -24,15 +24,15 @@ const (
|
|||||||
|
|
||||||
var SingletonFormatter = New(ColorModeTerminal)
|
var SingletonFormatter = New(ColorModeTerminal)
|
||||||
|
|
||||||
func F(format string, args ...interface{}) string {
|
func F(format string, args ...any) string {
|
||||||
return SingletonFormatter.F(format, args...)
|
return SingletonFormatter.F(format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Fi(indentation uint, format string, args ...interface{}) string {
|
func Fi(indentation uint, format string, args ...any) string {
|
||||||
return SingletonFormatter.Fi(indentation, format, args...)
|
return SingletonFormatter.Fi(indentation, format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func Fiw(indentation uint, maxWidth uint, format string, args ...interface{}) string {
|
func Fiw(indentation uint, maxWidth uint, format string, args ...any) string {
|
||||||
return SingletonFormatter.Fiw(indentation, maxWidth, format, args...)
|
return SingletonFormatter.Fiw(indentation, maxWidth, format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -115,15 +115,15 @@ func New(colorMode ColorMode) Formatter {
|
|||||||
return f
|
return f
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f Formatter) F(format string, args ...interface{}) string {
|
func (f Formatter) F(format string, args ...any) string {
|
||||||
return f.Fi(0, format, args...)
|
return f.Fi(0, format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f Formatter) Fi(indentation uint, format string, args ...interface{}) string {
|
func (f Formatter) Fi(indentation uint, format string, args ...any) string {
|
||||||
return f.Fiw(indentation, 0, format, args...)
|
return f.Fiw(indentation, 0, format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f Formatter) Fiw(indentation uint, maxWidth uint, format string, args ...interface{}) string {
|
func (f Formatter) Fiw(indentation uint, maxWidth uint, format string, args ...any) string {
|
||||||
out := f.style(format)
|
out := f.style(format)
|
||||||
if len(args) > 0 {
|
if len(args) > 0 {
|
||||||
out = fmt.Sprintf(out, args...)
|
out = fmt.Sprintf(out, args...)
|
||||||
|
14
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/build/build_command.go
generated
vendored
14
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/build/build_command.go
generated
vendored
@ -55,18 +55,22 @@ func buildSpecs(args []string, cliConfig types.CLIConfig, goFlagsConfig types.Go
|
|||||||
if suite.State.Is(internal.TestSuiteStateFailedToCompile) {
|
if suite.State.Is(internal.TestSuiteStateFailedToCompile) {
|
||||||
fmt.Println(suite.CompilationError.Error())
|
fmt.Println(suite.CompilationError.Error())
|
||||||
} else {
|
} else {
|
||||||
if len(goFlagsConfig.O) == 0 {
|
var testBinPath string
|
||||||
goFlagsConfig.O = path.Join(suite.Path, suite.PackageName+".test")
|
if len(goFlagsConfig.O) != 0 {
|
||||||
} else {
|
|
||||||
stat, err := os.Stat(goFlagsConfig.O)
|
stat, err := os.Stat(goFlagsConfig.O)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
if stat.IsDir() {
|
if stat.IsDir() {
|
||||||
goFlagsConfig.O += "/" + suite.PackageName + ".test"
|
testBinPath = goFlagsConfig.O + "/" + suite.PackageName + ".test"
|
||||||
|
} else {
|
||||||
|
testBinPath = goFlagsConfig.O
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fmt.Printf("Compiled %s\n", goFlagsConfig.O)
|
if len(testBinPath) == 0 {
|
||||||
|
testBinPath = path.Join(suite.Path, suite.PackageName+".test")
|
||||||
|
}
|
||||||
|
fmt.Printf("Compiled %s\n", testBinPath)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/command/abort.go
generated
vendored
6
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/command/abort.go
generated
vendored
@ -12,7 +12,7 @@ func Abort(details AbortDetails) {
|
|||||||
panic(details)
|
panic(details)
|
||||||
}
|
}
|
||||||
|
|
||||||
func AbortGracefullyWith(format string, args ...interface{}) {
|
func AbortGracefullyWith(format string, args ...any) {
|
||||||
Abort(AbortDetails{
|
Abort(AbortDetails{
|
||||||
ExitCode: 0,
|
ExitCode: 0,
|
||||||
Error: fmt.Errorf(format, args...),
|
Error: fmt.Errorf(format, args...),
|
||||||
@ -20,7 +20,7 @@ func AbortGracefullyWith(format string, args ...interface{}) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func AbortWith(format string, args ...interface{}) {
|
func AbortWith(format string, args ...any) {
|
||||||
Abort(AbortDetails{
|
Abort(AbortDetails{
|
||||||
ExitCode: 1,
|
ExitCode: 1,
|
||||||
Error: fmt.Errorf(format, args...),
|
Error: fmt.Errorf(format, args...),
|
||||||
@ -28,7 +28,7 @@ func AbortWith(format string, args ...interface{}) {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
func AbortWithUsage(format string, args ...interface{}) {
|
func AbortWithUsage(format string, args ...any) {
|
||||||
Abort(AbortDetails{
|
Abort(AbortDetails{
|
||||||
ExitCode: 1,
|
ExitCode: 1,
|
||||||
Error: fmt.Errorf(format, args...),
|
Error: fmt.Errorf(format, args...),
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/command/program.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/command/program.go
generated
vendored
@ -68,7 +68,6 @@ func (p Program) RunAndExit(osArgs []string) {
|
|||||||
fmt.Fprintln(p.ErrWriter, deprecationTracker.DeprecationsReport())
|
fmt.Fprintln(p.ErrWriter, deprecationTracker.DeprecationsReport())
|
||||||
}
|
}
|
||||||
p.Exiter(exitCode)
|
p.Exiter(exitCode)
|
||||||
return
|
|
||||||
}()
|
}()
|
||||||
|
|
||||||
args, additionalArgs := []string{}, []string{}
|
args, additionalArgs := []string{}, []string{}
|
||||||
@ -157,7 +156,6 @@ func (p Program) handleHelpRequestsAndExit(writer io.Writer, args []string) {
|
|||||||
p.EmitUsage(writer)
|
p.EmitUsage(writer)
|
||||||
Abort(AbortDetails{ExitCode: 1})
|
Abort(AbortDetails{ExitCode: 1})
|
||||||
}
|
}
|
||||||
return
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (p Program) EmitUsage(writer io.Writer) {
|
func (p Program) EmitUsage(writer io.Writer) {
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/gocovmerge.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/gocovmerge.go
generated
vendored
@ -89,7 +89,7 @@ func mergeProfileBlock(p *cover.Profile, pb cover.ProfileBlock, startIndex int)
|
|||||||
}
|
}
|
||||||
|
|
||||||
i := 0
|
i := 0
|
||||||
if sortFunc(i) != true {
|
if !sortFunc(i) {
|
||||||
i = sort.Search(len(p.Blocks)-startIndex, sortFunc)
|
i = sort.Search(len(p.Blocks)-startIndex, sortFunc)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/run/run_command.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo/run/run_command.go
generated
vendored
@ -142,7 +142,7 @@ OUTER_LOOP:
|
|||||||
}
|
}
|
||||||
|
|
||||||
if !endTime.IsZero() {
|
if !endTime.IsZero() {
|
||||||
r.suiteConfig.Timeout = endTime.Sub(time.Now())
|
r.suiteConfig.Timeout = time.Until(endTime)
|
||||||
if r.suiteConfig.Timeout <= 0 {
|
if r.suiteConfig.Timeout <= 0 {
|
||||||
suites[suiteIdx].State = internal.TestSuiteStateFailedDueToTimeout
|
suites[suiteIdx].State = internal.TestSuiteStateFailedDueToTimeout
|
||||||
opc.StopAndDrain()
|
opc.StopAndDrain()
|
||||||
|
3
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo_t_dsl.go
generated
vendored
3
e2e/vendor/github.com/onsi/ginkgo/v2/ginkgo_t_dsl.go
generated
vendored
@ -1,6 +1,7 @@
|
|||||||
package ginkgo
|
package ginkgo
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/onsi/ginkgo/v2/internal/testingtproxy"
|
"github.com/onsi/ginkgo/v2/internal/testingtproxy"
|
||||||
@ -48,6 +49,8 @@ The portion of the interface returned by GinkgoT() that maps onto methods in the
|
|||||||
*/
|
*/
|
||||||
type GinkgoTInterface interface {
|
type GinkgoTInterface interface {
|
||||||
Cleanup(func())
|
Cleanup(func())
|
||||||
|
Chdir(dir string)
|
||||||
|
Context() context.Context
|
||||||
Setenv(kev, value string)
|
Setenv(kev, value string)
|
||||||
Error(args ...any)
|
Error(args ...any)
|
||||||
Errorf(format string, args ...any)
|
Errorf(format string, args ...any)
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/failer.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/failer.go
generated
vendored
@ -32,7 +32,7 @@ func (f *Failer) GetFailure() types.Failure {
|
|||||||
return f.failure
|
return f.failure
|
||||||
}
|
}
|
||||||
|
|
||||||
func (f *Failer) Panic(location types.CodeLocation, forwardedPanic interface{}) {
|
func (f *Failer) Panic(location types.CodeLocation, forwardedPanic any) {
|
||||||
f.lock.Lock()
|
f.lock.Lock()
|
||||||
defer f.lock.Unlock()
|
defer f.lock.Unlock()
|
||||||
|
|
||||||
|
22
e2e/vendor/github.com/onsi/ginkgo/v2/internal/interrupt_handler/interrupt_handler.go
generated
vendored
22
e2e/vendor/github.com/onsi/ginkgo/v2/internal/interrupt_handler/interrupt_handler.go
generated
vendored
@ -40,7 +40,7 @@ func (ic InterruptCause) String() string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InterruptStatus struct {
|
type InterruptStatus struct {
|
||||||
Channel chan interface{}
|
Channel chan any
|
||||||
Level InterruptLevel
|
Level InterruptLevel
|
||||||
Cause InterruptCause
|
Cause InterruptCause
|
||||||
}
|
}
|
||||||
@ -62,14 +62,14 @@ type InterruptHandlerInterface interface {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type InterruptHandler struct {
|
type InterruptHandler struct {
|
||||||
c chan interface{}
|
c chan any
|
||||||
lock *sync.Mutex
|
lock *sync.Mutex
|
||||||
level InterruptLevel
|
level InterruptLevel
|
||||||
cause InterruptCause
|
cause InterruptCause
|
||||||
client parallel_support.Client
|
client parallel_support.Client
|
||||||
stop chan interface{}
|
stop chan any
|
||||||
signals []os.Signal
|
signals []os.Signal
|
||||||
requestAbortCheck chan interface{}
|
requestAbortCheck chan any
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewInterruptHandler(client parallel_support.Client, signals ...os.Signal) *InterruptHandler {
|
func NewInterruptHandler(client parallel_support.Client, signals ...os.Signal) *InterruptHandler {
|
||||||
@ -77,10 +77,10 @@ func NewInterruptHandler(client parallel_support.Client, signals ...os.Signal) *
|
|||||||
signals = []os.Signal{os.Interrupt, syscall.SIGTERM}
|
signals = []os.Signal{os.Interrupt, syscall.SIGTERM}
|
||||||
}
|
}
|
||||||
handler := &InterruptHandler{
|
handler := &InterruptHandler{
|
||||||
c: make(chan interface{}),
|
c: make(chan any),
|
||||||
lock: &sync.Mutex{},
|
lock: &sync.Mutex{},
|
||||||
stop: make(chan interface{}),
|
stop: make(chan any),
|
||||||
requestAbortCheck: make(chan interface{}),
|
requestAbortCheck: make(chan any),
|
||||||
client: client,
|
client: client,
|
||||||
signals: signals,
|
signals: signals,
|
||||||
}
|
}
|
||||||
@ -98,9 +98,9 @@ func (handler *InterruptHandler) registerForInterrupts() {
|
|||||||
signal.Notify(signalChannel, handler.signals...)
|
signal.Notify(signalChannel, handler.signals...)
|
||||||
|
|
||||||
// cross-process abort handling
|
// cross-process abort handling
|
||||||
var abortChannel chan interface{}
|
var abortChannel chan any
|
||||||
if handler.client != nil {
|
if handler.client != nil {
|
||||||
abortChannel = make(chan interface{})
|
abortChannel = make(chan any)
|
||||||
go func() {
|
go func() {
|
||||||
pollTicker := time.NewTicker(ABORT_POLLING_INTERVAL)
|
pollTicker := time.NewTicker(ABORT_POLLING_INTERVAL)
|
||||||
for {
|
for {
|
||||||
@ -125,7 +125,7 @@ func (handler *InterruptHandler) registerForInterrupts() {
|
|||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|
||||||
go func(abortChannel chan interface{}) {
|
go func(abortChannel chan any) {
|
||||||
var interruptCause InterruptCause
|
var interruptCause InterruptCause
|
||||||
for {
|
for {
|
||||||
select {
|
select {
|
||||||
@ -151,7 +151,7 @@ func (handler *InterruptHandler) registerForInterrupts() {
|
|||||||
}
|
}
|
||||||
if handler.level != oldLevel {
|
if handler.level != oldLevel {
|
||||||
close(handler.c)
|
close(handler.c)
|
||||||
handler.c = make(chan interface{})
|
handler.c = make(chan any)
|
||||||
}
|
}
|
||||||
handler.lock.Unlock()
|
handler.lock.Unlock()
|
||||||
}
|
}
|
||||||
|
34
e2e/vendor/github.com/onsi/ginkgo/v2/internal/node.go
generated
vendored
34
e2e/vendor/github.com/onsi/ginkgo/v2/internal/node.go
generated
vendored
@ -84,7 +84,7 @@ const SuppressProgressReporting = suppressProgressReporting(true)
|
|||||||
type FlakeAttempts uint
|
type FlakeAttempts uint
|
||||||
type MustPassRepeatedly uint
|
type MustPassRepeatedly uint
|
||||||
type Offset uint
|
type Offset uint
|
||||||
type Done chan<- interface{} // Deprecated Done Channel for asynchronous testing
|
type Done chan<- any // Deprecated Done Channel for asynchronous testing
|
||||||
type Labels []string
|
type Labels []string
|
||||||
type PollProgressInterval time.Duration
|
type PollProgressInterval time.Duration
|
||||||
type PollProgressAfter time.Duration
|
type PollProgressAfter time.Duration
|
||||||
@ -110,9 +110,9 @@ func UnionOfLabels(labels ...Labels) Labels {
|
|||||||
return out
|
return out
|
||||||
}
|
}
|
||||||
|
|
||||||
func PartitionDecorations(args ...interface{}) ([]interface{}, []interface{}) {
|
func PartitionDecorations(args ...any) ([]any, []any) {
|
||||||
decorations := []interface{}{}
|
decorations := []any{}
|
||||||
remainingArgs := []interface{}{}
|
remainingArgs := []any{}
|
||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
if isDecoration(arg) {
|
if isDecoration(arg) {
|
||||||
decorations = append(decorations, arg)
|
decorations = append(decorations, arg)
|
||||||
@ -123,7 +123,7 @@ func PartitionDecorations(args ...interface{}) ([]interface{}, []interface{}) {
|
|||||||
return decorations, remainingArgs
|
return decorations, remainingArgs
|
||||||
}
|
}
|
||||||
|
|
||||||
func isDecoration(arg interface{}) bool {
|
func isDecoration(arg any) bool {
|
||||||
switch t := reflect.TypeOf(arg); {
|
switch t := reflect.TypeOf(arg); {
|
||||||
case t == nil:
|
case t == nil:
|
||||||
return false
|
return false
|
||||||
@ -168,7 +168,7 @@ func isDecoration(arg interface{}) bool {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func isSliceOfDecorations(slice interface{}) bool {
|
func isSliceOfDecorations(slice any) bool {
|
||||||
vSlice := reflect.ValueOf(slice)
|
vSlice := reflect.ValueOf(slice)
|
||||||
if vSlice.Len() == 0 {
|
if vSlice.Len() == 0 {
|
||||||
return false
|
return false
|
||||||
@ -184,7 +184,7 @@ func isSliceOfDecorations(slice interface{}) bool {
|
|||||||
var contextType = reflect.TypeOf(new(context.Context)).Elem()
|
var contextType = reflect.TypeOf(new(context.Context)).Elem()
|
||||||
var specContextType = reflect.TypeOf(new(SpecContext)).Elem()
|
var specContextType = reflect.TypeOf(new(SpecContext)).Elem()
|
||||||
|
|
||||||
func NewNode(deprecationTracker *types.DeprecationTracker, nodeType types.NodeType, text string, args ...interface{}) (Node, []error) {
|
func NewNode(deprecationTracker *types.DeprecationTracker, nodeType types.NodeType, text string, args ...any) (Node, []error) {
|
||||||
baseOffset := 2
|
baseOffset := 2
|
||||||
node := Node{
|
node := Node{
|
||||||
ID: UniqueNodeID(),
|
ID: UniqueNodeID(),
|
||||||
@ -207,7 +207,7 @@ func NewNode(deprecationTracker *types.DeprecationTracker, nodeType types.NodeTy
|
|||||||
|
|
||||||
args = unrollInterfaceSlice(args)
|
args = unrollInterfaceSlice(args)
|
||||||
|
|
||||||
remainingArgs := []interface{}{}
|
remainingArgs := []any{}
|
||||||
// First get the CodeLocation up-to-date
|
// First get the CodeLocation up-to-date
|
||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
switch v := arg.(type) {
|
switch v := arg.(type) {
|
||||||
@ -223,7 +223,7 @@ func NewNode(deprecationTracker *types.DeprecationTracker, nodeType types.NodeTy
|
|||||||
labelsSeen := map[string]bool{}
|
labelsSeen := map[string]bool{}
|
||||||
trackedFunctionError := false
|
trackedFunctionError := false
|
||||||
args = remainingArgs
|
args = remainingArgs
|
||||||
remainingArgs = []interface{}{}
|
remainingArgs = []any{}
|
||||||
// now process the rest of the args
|
// now process the rest of the args
|
||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
switch t := reflect.TypeOf(arg); {
|
switch t := reflect.TypeOf(arg); {
|
||||||
@ -451,7 +451,7 @@ func NewNode(deprecationTracker *types.DeprecationTracker, nodeType types.NodeTy
|
|||||||
|
|
||||||
var doneType = reflect.TypeOf(make(Done))
|
var doneType = reflect.TypeOf(make(Done))
|
||||||
|
|
||||||
func extractBodyFunction(deprecationTracker *types.DeprecationTracker, cl types.CodeLocation, arg interface{}) (func(SpecContext), bool) {
|
func extractBodyFunction(deprecationTracker *types.DeprecationTracker, cl types.CodeLocation, arg any) (func(SpecContext), bool) {
|
||||||
t := reflect.TypeOf(arg)
|
t := reflect.TypeOf(arg)
|
||||||
if t.NumOut() > 0 || t.NumIn() > 1 {
|
if t.NumOut() > 0 || t.NumIn() > 1 {
|
||||||
return nil, false
|
return nil, false
|
||||||
@ -477,7 +477,7 @@ func extractBodyFunction(deprecationTracker *types.DeprecationTracker, cl types.
|
|||||||
|
|
||||||
var byteType = reflect.TypeOf([]byte{})
|
var byteType = reflect.TypeOf([]byte{})
|
||||||
|
|
||||||
func extractSynchronizedBeforeSuiteProc1Body(arg interface{}) (func(SpecContext) []byte, bool) {
|
func extractSynchronizedBeforeSuiteProc1Body(arg any) (func(SpecContext) []byte, bool) {
|
||||||
t := reflect.TypeOf(arg)
|
t := reflect.TypeOf(arg)
|
||||||
v := reflect.ValueOf(arg)
|
v := reflect.ValueOf(arg)
|
||||||
|
|
||||||
@ -505,7 +505,7 @@ func extractSynchronizedBeforeSuiteProc1Body(arg interface{}) (func(SpecContext)
|
|||||||
}, hasContext
|
}, hasContext
|
||||||
}
|
}
|
||||||
|
|
||||||
func extractSynchronizedBeforeSuiteAllProcsBody(arg interface{}) (func(SpecContext, []byte), bool) {
|
func extractSynchronizedBeforeSuiteAllProcsBody(arg any) (func(SpecContext, []byte), bool) {
|
||||||
t := reflect.TypeOf(arg)
|
t := reflect.TypeOf(arg)
|
||||||
v := reflect.ValueOf(arg)
|
v := reflect.ValueOf(arg)
|
||||||
hasContext, hasByte := false, false
|
hasContext, hasByte := false, false
|
||||||
@ -536,11 +536,11 @@ func extractSynchronizedBeforeSuiteAllProcsBody(arg interface{}) (func(SpecConte
|
|||||||
|
|
||||||
var errInterface = reflect.TypeOf((*error)(nil)).Elem()
|
var errInterface = reflect.TypeOf((*error)(nil)).Elem()
|
||||||
|
|
||||||
func NewCleanupNode(deprecationTracker *types.DeprecationTracker, fail func(string, types.CodeLocation), args ...interface{}) (Node, []error) {
|
func NewCleanupNode(deprecationTracker *types.DeprecationTracker, fail func(string, types.CodeLocation), args ...any) (Node, []error) {
|
||||||
decorations, remainingArgs := PartitionDecorations(args...)
|
decorations, remainingArgs := PartitionDecorations(args...)
|
||||||
baseOffset := 2
|
baseOffset := 2
|
||||||
cl := types.NewCodeLocation(baseOffset)
|
cl := types.NewCodeLocation(baseOffset)
|
||||||
finalArgs := []interface{}{}
|
finalArgs := []any{}
|
||||||
for _, arg := range decorations {
|
for _, arg := range decorations {
|
||||||
switch t := reflect.TypeOf(arg); {
|
switch t := reflect.TypeOf(arg); {
|
||||||
case t == reflect.TypeOf(Offset(0)):
|
case t == reflect.TypeOf(Offset(0)):
|
||||||
@ -920,12 +920,12 @@ func (n Nodes) GetMaxMustPassRepeatedly() int {
|
|||||||
return maxMustPassRepeatedly
|
return maxMustPassRepeatedly
|
||||||
}
|
}
|
||||||
|
|
||||||
func unrollInterfaceSlice(args interface{}) []interface{} {
|
func unrollInterfaceSlice(args any) []any {
|
||||||
v := reflect.ValueOf(args)
|
v := reflect.ValueOf(args)
|
||||||
if v.Kind() != reflect.Slice {
|
if v.Kind() != reflect.Slice {
|
||||||
return []interface{}{args}
|
return []any{args}
|
||||||
}
|
}
|
||||||
out := []interface{}{}
|
out := []any{}
|
||||||
for i := 0; i < v.Len(); i++ {
|
for i := 0; i < v.Len(); i++ {
|
||||||
el := reflect.ValueOf(v.Index(i).Interface())
|
el := reflect.ValueOf(v.Index(i).Interface())
|
||||||
if el.Kind() == reflect.Slice && el.Type() != reflect.TypeOf(Labels{}) {
|
if el.Kind() == reflect.Slice && el.Type() != reflect.TypeOf(Labels{}) {
|
||||||
|
14
e2e/vendor/github.com/onsi/ginkgo/v2/internal/output_interceptor.go
generated
vendored
14
e2e/vendor/github.com/onsi/ginkgo/v2/internal/output_interceptor.go
generated
vendored
@ -69,7 +69,7 @@ type pipePair struct {
|
|||||||
writer *os.File
|
writer *os.File
|
||||||
}
|
}
|
||||||
|
|
||||||
func startPipeFactory(pipeChannel chan pipePair, shutdown chan interface{}) {
|
func startPipeFactory(pipeChannel chan pipePair, shutdown chan any) {
|
||||||
for {
|
for {
|
||||||
//make the next pipe...
|
//make the next pipe...
|
||||||
pair := pipePair{}
|
pair := pipePair{}
|
||||||
@ -101,8 +101,8 @@ type genericOutputInterceptor struct {
|
|||||||
stderrClone *os.File
|
stderrClone *os.File
|
||||||
pipe pipePair
|
pipe pipePair
|
||||||
|
|
||||||
shutdown chan interface{}
|
shutdown chan any
|
||||||
emergencyBailout chan interface{}
|
emergencyBailout chan any
|
||||||
pipeChannel chan pipePair
|
pipeChannel chan pipePair
|
||||||
interceptedContent chan string
|
interceptedContent chan string
|
||||||
|
|
||||||
@ -139,7 +139,7 @@ func (interceptor *genericOutputInterceptor) ResumeIntercepting() {
|
|||||||
interceptor.intercepting = true
|
interceptor.intercepting = true
|
||||||
if interceptor.stdoutClone == nil {
|
if interceptor.stdoutClone == nil {
|
||||||
interceptor.stdoutClone, interceptor.stderrClone = interceptor.implementation.CreateStdoutStderrClones()
|
interceptor.stdoutClone, interceptor.stderrClone = interceptor.implementation.CreateStdoutStderrClones()
|
||||||
interceptor.shutdown = make(chan interface{})
|
interceptor.shutdown = make(chan any)
|
||||||
go startPipeFactory(interceptor.pipeChannel, interceptor.shutdown)
|
go startPipeFactory(interceptor.pipeChannel, interceptor.shutdown)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -147,13 +147,13 @@ func (interceptor *genericOutputInterceptor) ResumeIntercepting() {
|
|||||||
// we get the pipe from our pipe factory. it runs in the background so we can request the next pipe while the spec being intercepted is running
|
// we get the pipe from our pipe factory. it runs in the background so we can request the next pipe while the spec being intercepted is running
|
||||||
interceptor.pipe = <-interceptor.pipeChannel
|
interceptor.pipe = <-interceptor.pipeChannel
|
||||||
|
|
||||||
interceptor.emergencyBailout = make(chan interface{})
|
interceptor.emergencyBailout = make(chan any)
|
||||||
|
|
||||||
//Spin up a goroutine to copy data from the pipe into a buffer, this is how we capture any output the user is emitting
|
//Spin up a goroutine to copy data from the pipe into a buffer, this is how we capture any output the user is emitting
|
||||||
go func() {
|
go func() {
|
||||||
buffer := &bytes.Buffer{}
|
buffer := &bytes.Buffer{}
|
||||||
destination := io.MultiWriter(buffer, interceptor.forwardTo)
|
destination := io.MultiWriter(buffer, interceptor.forwardTo)
|
||||||
copyFinished := make(chan interface{})
|
copyFinished := make(chan any)
|
||||||
reader := interceptor.pipe.reader
|
reader := interceptor.pipe.reader
|
||||||
go func() {
|
go func() {
|
||||||
io.Copy(destination, reader)
|
io.Copy(destination, reader)
|
||||||
@ -224,7 +224,7 @@ func NewOSGlobalReassigningOutputInterceptor() OutputInterceptor {
|
|||||||
return &genericOutputInterceptor{
|
return &genericOutputInterceptor{
|
||||||
interceptedContent: make(chan string),
|
interceptedContent: make(chan string),
|
||||||
pipeChannel: make(chan pipePair),
|
pipeChannel: make(chan pipePair),
|
||||||
shutdown: make(chan interface{}),
|
shutdown: make(chan any),
|
||||||
implementation: &osGlobalReassigningOutputInterceptorImpl{},
|
implementation: &osGlobalReassigningOutputInterceptorImpl{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/output_interceptor_unix.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/output_interceptor_unix.go
generated
vendored
@ -13,7 +13,7 @@ func NewOutputInterceptor() OutputInterceptor {
|
|||||||
return &genericOutputInterceptor{
|
return &genericOutputInterceptor{
|
||||||
interceptedContent: make(chan string),
|
interceptedContent: make(chan string),
|
||||||
pipeChannel: make(chan pipePair),
|
pipeChannel: make(chan pipePair),
|
||||||
shutdown: make(chan interface{}),
|
shutdown: make(chan any),
|
||||||
implementation: &dupSyscallOutputInterceptorImpl{},
|
implementation: &dupSyscallOutputInterceptorImpl{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/client_server.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/client_server.go
generated
vendored
@ -30,7 +30,7 @@ type Server interface {
|
|||||||
Close()
|
Close()
|
||||||
Address() string
|
Address() string
|
||||||
RegisterAlive(node int, alive func() bool)
|
RegisterAlive(node int, alive func() bool)
|
||||||
GetSuiteDone() chan interface{}
|
GetSuiteDone() chan any
|
||||||
GetOutputDestination() io.Writer
|
GetOutputDestination() io.Writer
|
||||||
SetOutputDestination(io.Writer)
|
SetOutputDestination(io.Writer)
|
||||||
}
|
}
|
||||||
|
9
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/http_client.go
generated
vendored
9
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/http_client.go
generated
vendored
@ -34,7 +34,7 @@ func (client *httpClient) Close() error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (client *httpClient) post(path string, data interface{}) error {
|
func (client *httpClient) post(path string, data any) error {
|
||||||
var body io.Reader
|
var body io.Reader
|
||||||
if data != nil {
|
if data != nil {
|
||||||
encoded, err := json.Marshal(data)
|
encoded, err := json.Marshal(data)
|
||||||
@ -54,7 +54,7 @@ func (client *httpClient) post(path string, data interface{}) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (client *httpClient) poll(path string, data interface{}) error {
|
func (client *httpClient) poll(path string, data any) error {
|
||||||
for {
|
for {
|
||||||
resp, err := http.Get(client.serverHost + path)
|
resp, err := http.Get(client.serverHost + path)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -153,10 +153,7 @@ func (client *httpClient) PostAbort() error {
|
|||||||
|
|
||||||
func (client *httpClient) ShouldAbort() bool {
|
func (client *httpClient) ShouldAbort() bool {
|
||||||
err := client.poll("/abort", nil)
|
err := client.poll("/abort", nil)
|
||||||
if err == ErrorGone {
|
return err == ErrorGone
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (client *httpClient) Write(p []byte) (int, error) {
|
func (client *httpClient) Write(p []byte) (int, error) {
|
||||||
|
4
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/http_server.go
generated
vendored
4
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/http_server.go
generated
vendored
@ -75,7 +75,7 @@ func (server *httpServer) Address() string {
|
|||||||
return "http://" + server.listener.Addr().String()
|
return "http://" + server.listener.Addr().String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (server *httpServer) GetSuiteDone() chan interface{} {
|
func (server *httpServer) GetSuiteDone() chan any {
|
||||||
return server.handler.done
|
return server.handler.done
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ func (server *httpServer) RegisterAlive(node int, alive func() bool) {
|
|||||||
//
|
//
|
||||||
|
|
||||||
// The server will forward all received messages to Ginkgo reporters registered with `RegisterReporters`
|
// The server will forward all received messages to Ginkgo reporters registered with `RegisterReporters`
|
||||||
func (server *httpServer) decode(writer http.ResponseWriter, request *http.Request, object interface{}) bool {
|
func (server *httpServer) decode(writer http.ResponseWriter, request *http.Request, object any) bool {
|
||||||
defer request.Body.Close()
|
defer request.Body.Close()
|
||||||
if json.NewDecoder(request.Body).Decode(object) != nil {
|
if json.NewDecoder(request.Body).Decode(object) != nil {
|
||||||
writer.WriteHeader(http.StatusBadRequest)
|
writer.WriteHeader(http.StatusBadRequest)
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/rpc_client.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/rpc_client.go
generated
vendored
@ -35,7 +35,7 @@ func (client *rpcClient) Close() error {
|
|||||||
return client.client.Close()
|
return client.client.Close()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (client *rpcClient) poll(method string, data interface{}) error {
|
func (client *rpcClient) poll(method string, data any) error {
|
||||||
for {
|
for {
|
||||||
err := client.client.Call(method, voidSender, data)
|
err := client.client.Call(method, voidSender, data)
|
||||||
if err == nil {
|
if err == nil {
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/rpc_server.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/rpc_server.go
generated
vendored
@ -58,7 +58,7 @@ func (server *RPCServer) Address() string {
|
|||||||
return server.listener.Addr().String()
|
return server.listener.Addr().String()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (server *RPCServer) GetSuiteDone() chan interface{} {
|
func (server *RPCServer) GetSuiteDone() chan any {
|
||||||
return server.handler.done
|
return server.handler.done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/server_handler.go
generated
vendored
4
e2e/vendor/github.com/onsi/ginkgo/v2/internal/parallel_support/server_handler.go
generated
vendored
@ -18,7 +18,7 @@ var voidSender Void
|
|||||||
// It handles all the business logic to avoid duplication between the two servers
|
// It handles all the business logic to avoid duplication between the two servers
|
||||||
|
|
||||||
type ServerHandler struct {
|
type ServerHandler struct {
|
||||||
done chan interface{}
|
done chan any
|
||||||
outputDestination io.Writer
|
outputDestination io.Writer
|
||||||
reporter reporters.Reporter
|
reporter reporters.Reporter
|
||||||
alives []func() bool
|
alives []func() bool
|
||||||
@ -46,7 +46,7 @@ func newServerHandler(parallelTotal int, reporter reporters.Reporter) *ServerHan
|
|||||||
|
|
||||||
parallelTotal: parallelTotal,
|
parallelTotal: parallelTotal,
|
||||||
outputDestination: os.Stdout,
|
outputDestination: os.Stdout,
|
||||||
done: make(chan interface{}),
|
done: make(chan any),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/report_entry.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/internal/report_entry.go
generated
vendored
@ -8,7 +8,7 @@ import (
|
|||||||
|
|
||||||
type ReportEntry = types.ReportEntry
|
type ReportEntry = types.ReportEntry
|
||||||
|
|
||||||
func NewReportEntry(name string, cl types.CodeLocation, args ...interface{}) (ReportEntry, error) {
|
func NewReportEntry(name string, cl types.CodeLocation, args ...any) (ReportEntry, error) {
|
||||||
out := ReportEntry{
|
out := ReportEntry{
|
||||||
Visibility: types.ReportEntryVisibilityAlways,
|
Visibility: types.ReportEntryVisibilityAlways,
|
||||||
Name: name,
|
Name: name,
|
||||||
|
43
e2e/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go
generated
vendored
43
e2e/vendor/github.com/onsi/ginkgo/v2/internal/testingtproxy/testing_t_proxy.go
generated
vendored
@ -1,6 +1,7 @@
|
|||||||
package testingtproxy
|
package testingtproxy
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"context"
|
||||||
"fmt"
|
"fmt"
|
||||||
"io"
|
"io"
|
||||||
"os"
|
"os"
|
||||||
@ -19,9 +20,9 @@ type addReportEntryFunc func(names string, args ...any)
|
|||||||
type ginkgoWriterInterface interface {
|
type ginkgoWriterInterface interface {
|
||||||
io.Writer
|
io.Writer
|
||||||
|
|
||||||
Print(a ...interface{})
|
Print(a ...any)
|
||||||
Printf(format string, a ...interface{})
|
Printf(format string, a ...any)
|
||||||
Println(a ...interface{})
|
Println(a ...any)
|
||||||
}
|
}
|
||||||
type ginkgoRecoverFunc func()
|
type ginkgoRecoverFunc func()
|
||||||
type attachProgressReporterFunc func(func() string) func()
|
type attachProgressReporterFunc func(func() string) func()
|
||||||
@ -80,11 +81,31 @@ func (t *ginkgoTestingTProxy) Setenv(key, value string) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Error(args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Chdir(dir string) {
|
||||||
|
currentDir, err := os.Getwd()
|
||||||
|
if err != nil {
|
||||||
|
t.fail(fmt.Sprintf("Failed to get current directory: %v", err), 1)
|
||||||
|
}
|
||||||
|
|
||||||
|
t.cleanup(os.Chdir, currentDir, internal.Offset(1))
|
||||||
|
|
||||||
|
err = os.Chdir(dir)
|
||||||
|
if err != nil {
|
||||||
|
t.fail(fmt.Sprintf("Failed to change directory: %v", err), 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (t *ginkgoTestingTProxy) Context() context.Context {
|
||||||
|
ctx, cancel := context.WithCancel(context.Background())
|
||||||
|
t.cleanup(cancel, internal.Offset(1))
|
||||||
|
return ctx
|
||||||
|
}
|
||||||
|
|
||||||
|
func (t *ginkgoTestingTProxy) Error(args ...any) {
|
||||||
t.fail(fmt.Sprintln(args...), t.offset)
|
t.fail(fmt.Sprintln(args...), t.offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Errorf(format string, args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Errorf(format string, args ...any) {
|
||||||
t.fail(fmt.Sprintf(format, args...), t.offset)
|
t.fail(fmt.Sprintf(format, args...), t.offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -100,11 +121,11 @@ func (t *ginkgoTestingTProxy) Failed() bool {
|
|||||||
return t.report().Failed()
|
return t.report().Failed()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Fatal(args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Fatal(args ...any) {
|
||||||
t.fail(fmt.Sprintln(args...), t.offset)
|
t.fail(fmt.Sprintln(args...), t.offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Fatalf(format string, args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Fatalf(format string, args ...any) {
|
||||||
t.fail(fmt.Sprintf(format, args...), t.offset)
|
t.fail(fmt.Sprintf(format, args...), t.offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -112,11 +133,11 @@ func (t *ginkgoTestingTProxy) Helper() {
|
|||||||
types.MarkAsHelper(1)
|
types.MarkAsHelper(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Log(args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Log(args ...any) {
|
||||||
fmt.Fprintln(t.writer, args...)
|
fmt.Fprintln(t.writer, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Logf(format string, args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Logf(format string, args ...any) {
|
||||||
t.Log(fmt.Sprintf(format, args...))
|
t.Log(fmt.Sprintf(format, args...))
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -128,7 +149,7 @@ func (t *ginkgoTestingTProxy) Parallel() {
|
|||||||
// No-op
|
// No-op
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Skip(args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Skip(args ...any) {
|
||||||
t.skip(fmt.Sprintln(args...), t.offset)
|
t.skip(fmt.Sprintln(args...), t.offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -136,7 +157,7 @@ func (t *ginkgoTestingTProxy) SkipNow() {
|
|||||||
t.skip("skip", t.offset)
|
t.skip("skip", t.offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t *ginkgoTestingTProxy) Skipf(format string, args ...interface{}) {
|
func (t *ginkgoTestingTProxy) Skipf(format string, args ...any) {
|
||||||
t.skip(fmt.Sprintf(format, args...), t.offset)
|
t.skip(fmt.Sprintf(format, args...), t.offset)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
6
e2e/vendor/github.com/onsi/ginkgo/v2/internal/writer.go
generated
vendored
6
e2e/vendor/github.com/onsi/ginkgo/v2/internal/writer.go
generated
vendored
@ -121,15 +121,15 @@ func (w *Writer) ClearTeeWriters() {
|
|||||||
w.teeWriters = []io.Writer{}
|
w.teeWriters = []io.Writer{}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *Writer) Print(a ...interface{}) {
|
func (w *Writer) Print(a ...any) {
|
||||||
fmt.Fprint(w, a...)
|
fmt.Fprint(w, a...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *Writer) Printf(format string, a ...interface{}) {
|
func (w *Writer) Printf(format string, a ...any) {
|
||||||
fmt.Fprintf(w, format, a...)
|
fmt.Fprintf(w, format, a...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (w *Writer) Println(a ...interface{}) {
|
func (w *Writer) Println(a ...any) {
|
||||||
fmt.Fprintln(w, a...)
|
fmt.Fprintln(w, a...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
4
e2e/vendor/github.com/onsi/ginkgo/v2/reporters/default_reporter.go
generated
vendored
4
e2e/vendor/github.com/onsi/ginkgo/v2/reporters/default_reporter.go
generated
vendored
@ -685,11 +685,11 @@ func (r *DefaultReporter) _emit(s string, block bool, isDelimiter bool) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Rendering text */
|
/* Rendering text */
|
||||||
func (r *DefaultReporter) f(format string, args ...interface{}) string {
|
func (r *DefaultReporter) f(format string, args ...any) string {
|
||||||
return r.formatter.F(format, args...)
|
return r.formatter.F(format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *DefaultReporter) fi(indentation uint, format string, args ...interface{}) string {
|
func (r *DefaultReporter) fi(indentation uint, format string, args ...any) string {
|
||||||
return r.formatter.Fi(indentation, format, args...)
|
return r.formatter.Fi(indentation, format, args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
12
e2e/vendor/github.com/onsi/ginkgo/v2/reporting_dsl.go
generated
vendored
12
e2e/vendor/github.com/onsi/ginkgo/v2/reporting_dsl.go
generated
vendored
@ -60,7 +60,7 @@ AddReportEntry() must be called within a Subject or Setup node - not in a Contai
|
|||||||
|
|
||||||
You can learn more about Report Entries here: https://onsi.github.io/ginkgo/#attaching-data-to-reports
|
You can learn more about Report Entries here: https://onsi.github.io/ginkgo/#attaching-data-to-reports
|
||||||
*/
|
*/
|
||||||
func AddReportEntry(name string, args ...interface{}) {
|
func AddReportEntry(name string, args ...any) {
|
||||||
cl := types.NewCodeLocation(1)
|
cl := types.NewCodeLocation(1)
|
||||||
reportEntry, err := internal.NewReportEntry(name, cl, args...)
|
reportEntry, err := internal.NewReportEntry(name, cl, args...)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -89,7 +89,7 @@ You can learn more about ReportBeforeEach here: https://onsi.github.io/ginkgo/#g
|
|||||||
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
||||||
*/
|
*/
|
||||||
func ReportBeforeEach(body any, args ...any) bool {
|
func ReportBeforeEach(body any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{body}
|
combinedArgs := []any{body}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
|
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportBeforeEach, "", combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportBeforeEach, "", combinedArgs...))
|
||||||
@ -113,7 +113,7 @@ You can learn more about ReportAfterEach here: https://onsi.github.io/ginkgo/#ge
|
|||||||
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
||||||
*/
|
*/
|
||||||
func ReportAfterEach(body any, args ...any) bool {
|
func ReportAfterEach(body any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{body}
|
combinedArgs := []any{body}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
|
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportAfterEach, "", combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportAfterEach, "", combinedArgs...))
|
||||||
@ -143,7 +143,7 @@ You can learn more about Ginkgo's reporting infrastructure, including generating
|
|||||||
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
||||||
*/
|
*/
|
||||||
func ReportBeforeSuite(body any, args ...any) bool {
|
func ReportBeforeSuite(body any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{body}
|
combinedArgs := []any{body}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportBeforeSuite, "", combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportBeforeSuite, "", combinedArgs...))
|
||||||
}
|
}
|
||||||
@ -174,8 +174,8 @@ You can learn more about Ginkgo's reporting infrastructure, including generating
|
|||||||
|
|
||||||
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
You can learn about interruptible nodes here: https://onsi.github.io/ginkgo/#spec-timeouts-and-interruptible-nodes
|
||||||
*/
|
*/
|
||||||
func ReportAfterSuite(text string, body any, args ...interface{}) bool {
|
func ReportAfterSuite(text string, body any, args ...any) bool {
|
||||||
combinedArgs := []interface{}{body}
|
combinedArgs := []any{body}
|
||||||
combinedArgs = append(combinedArgs, args...)
|
combinedArgs = append(combinedArgs, args...)
|
||||||
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportAfterSuite, text, combinedArgs...))
|
return pushNode(internal.NewNode(deprecationTracker, types.NodeTypeReportAfterSuite, text, combinedArgs...))
|
||||||
}
|
}
|
||||||
|
46
e2e/vendor/github.com/onsi/ginkgo/v2/table_dsl.go
generated
vendored
46
e2e/vendor/github.com/onsi/ginkgo/v2/table_dsl.go
generated
vendored
@ -23,7 +23,7 @@ You can learn more about generating EntryDescriptions here: https://onsi.github.
|
|||||||
*/
|
*/
|
||||||
type EntryDescription string
|
type EntryDescription string
|
||||||
|
|
||||||
func (ed EntryDescription) render(args ...interface{}) string {
|
func (ed EntryDescription) render(args ...any) string {
|
||||||
return fmt.Sprintf(string(ed), args...)
|
return fmt.Sprintf(string(ed), args...)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -44,7 +44,7 @@ For example:
|
|||||||
You can learn more about DescribeTable here: https://onsi.github.io/ginkgo/#table-specs
|
You can learn more about DescribeTable here: https://onsi.github.io/ginkgo/#table-specs
|
||||||
And can explore some Table patterns here: https://onsi.github.io/ginkgo/#table-specs-patterns
|
And can explore some Table patterns here: https://onsi.github.io/ginkgo/#table-specs-patterns
|
||||||
*/
|
*/
|
||||||
func DescribeTable(description string, args ...interface{}) bool {
|
func DescribeTable(description string, args ...any) bool {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
generateTable(description, false, args...)
|
generateTable(description, false, args...)
|
||||||
return true
|
return true
|
||||||
@ -53,7 +53,7 @@ func DescribeTable(description string, args ...interface{}) bool {
|
|||||||
/*
|
/*
|
||||||
You can focus a table with `FDescribeTable`. This is equivalent to `FDescribe`.
|
You can focus a table with `FDescribeTable`. This is equivalent to `FDescribe`.
|
||||||
*/
|
*/
|
||||||
func FDescribeTable(description string, args ...interface{}) bool {
|
func FDescribeTable(description string, args ...any) bool {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
args = append(args, internal.Focus)
|
args = append(args, internal.Focus)
|
||||||
generateTable(description, false, args...)
|
generateTable(description, false, args...)
|
||||||
@ -63,7 +63,7 @@ func FDescribeTable(description string, args ...interface{}) bool {
|
|||||||
/*
|
/*
|
||||||
You can mark a table as pending with `PDescribeTable`. This is equivalent to `PDescribe`.
|
You can mark a table as pending with `PDescribeTable`. This is equivalent to `PDescribe`.
|
||||||
*/
|
*/
|
||||||
func PDescribeTable(description string, args ...interface{}) bool {
|
func PDescribeTable(description string, args ...any) bool {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
args = append(args, internal.Pending)
|
args = append(args, internal.Pending)
|
||||||
generateTable(description, false, args...)
|
generateTable(description, false, args...)
|
||||||
@ -109,7 +109,7 @@ Note that you **must** place define an It inside the body function.
|
|||||||
You can learn more about DescribeTableSubtree here: https://onsi.github.io/ginkgo/#table-specs
|
You can learn more about DescribeTableSubtree here: https://onsi.github.io/ginkgo/#table-specs
|
||||||
And can explore some Table patterns here: https://onsi.github.io/ginkgo/#table-specs-patterns
|
And can explore some Table patterns here: https://onsi.github.io/ginkgo/#table-specs-patterns
|
||||||
*/
|
*/
|
||||||
func DescribeTableSubtree(description string, args ...interface{}) bool {
|
func DescribeTableSubtree(description string, args ...any) bool {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
generateTable(description, true, args...)
|
generateTable(description, true, args...)
|
||||||
return true
|
return true
|
||||||
@ -118,7 +118,7 @@ func DescribeTableSubtree(description string, args ...interface{}) bool {
|
|||||||
/*
|
/*
|
||||||
You can focus a table with `FDescribeTableSubtree`. This is equivalent to `FDescribe`.
|
You can focus a table with `FDescribeTableSubtree`. This is equivalent to `FDescribe`.
|
||||||
*/
|
*/
|
||||||
func FDescribeTableSubtree(description string, args ...interface{}) bool {
|
func FDescribeTableSubtree(description string, args ...any) bool {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
args = append(args, internal.Focus)
|
args = append(args, internal.Focus)
|
||||||
generateTable(description, true, args...)
|
generateTable(description, true, args...)
|
||||||
@ -128,7 +128,7 @@ func FDescribeTableSubtree(description string, args ...interface{}) bool {
|
|||||||
/*
|
/*
|
||||||
You can mark a table as pending with `PDescribeTableSubtree`. This is equivalent to `PDescribe`.
|
You can mark a table as pending with `PDescribeTableSubtree`. This is equivalent to `PDescribe`.
|
||||||
*/
|
*/
|
||||||
func PDescribeTableSubtree(description string, args ...interface{}) bool {
|
func PDescribeTableSubtree(description string, args ...any) bool {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
args = append(args, internal.Pending)
|
args = append(args, internal.Pending)
|
||||||
generateTable(description, true, args...)
|
generateTable(description, true, args...)
|
||||||
@ -144,9 +144,9 @@ var XDescribeTableSubtree = PDescribeTableSubtree
|
|||||||
TableEntry represents an entry in a table test. You generally use the `Entry` constructor.
|
TableEntry represents an entry in a table test. You generally use the `Entry` constructor.
|
||||||
*/
|
*/
|
||||||
type TableEntry struct {
|
type TableEntry struct {
|
||||||
description interface{}
|
description any
|
||||||
decorations []interface{}
|
decorations []any
|
||||||
parameters []interface{}
|
parameters []any
|
||||||
codeLocation types.CodeLocation
|
codeLocation types.CodeLocation
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -162,7 +162,7 @@ If you want to generate interruptible specs simply write a Table function that a
|
|||||||
|
|
||||||
You can learn more about Entry here: https://onsi.github.io/ginkgo/#table-specs
|
You can learn more about Entry here: https://onsi.github.io/ginkgo/#table-specs
|
||||||
*/
|
*/
|
||||||
func Entry(description interface{}, args ...interface{}) TableEntry {
|
func Entry(description any, args ...any) TableEntry {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
decorations, parameters := internal.PartitionDecorations(args...)
|
decorations, parameters := internal.PartitionDecorations(args...)
|
||||||
return TableEntry{description: description, decorations: decorations, parameters: parameters, codeLocation: types.NewCodeLocation(0)}
|
return TableEntry{description: description, decorations: decorations, parameters: parameters, codeLocation: types.NewCodeLocation(0)}
|
||||||
@ -171,7 +171,7 @@ func Entry(description interface{}, args ...interface{}) TableEntry {
|
|||||||
/*
|
/*
|
||||||
You can focus a particular entry with FEntry. This is equivalent to FIt.
|
You can focus a particular entry with FEntry. This is equivalent to FIt.
|
||||||
*/
|
*/
|
||||||
func FEntry(description interface{}, args ...interface{}) TableEntry {
|
func FEntry(description any, args ...any) TableEntry {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
decorations, parameters := internal.PartitionDecorations(args...)
|
decorations, parameters := internal.PartitionDecorations(args...)
|
||||||
decorations = append(decorations, internal.Focus)
|
decorations = append(decorations, internal.Focus)
|
||||||
@ -181,7 +181,7 @@ func FEntry(description interface{}, args ...interface{}) TableEntry {
|
|||||||
/*
|
/*
|
||||||
You can mark a particular entry as pending with PEntry. This is equivalent to PIt.
|
You can mark a particular entry as pending with PEntry. This is equivalent to PIt.
|
||||||
*/
|
*/
|
||||||
func PEntry(description interface{}, args ...interface{}) TableEntry {
|
func PEntry(description any, args ...any) TableEntry {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
decorations, parameters := internal.PartitionDecorations(args...)
|
decorations, parameters := internal.PartitionDecorations(args...)
|
||||||
decorations = append(decorations, internal.Pending)
|
decorations = append(decorations, internal.Pending)
|
||||||
@ -196,17 +196,17 @@ var XEntry = PEntry
|
|||||||
var contextType = reflect.TypeOf(new(context.Context)).Elem()
|
var contextType = reflect.TypeOf(new(context.Context)).Elem()
|
||||||
var specContextType = reflect.TypeOf(new(SpecContext)).Elem()
|
var specContextType = reflect.TypeOf(new(SpecContext)).Elem()
|
||||||
|
|
||||||
func generateTable(description string, isSubtree bool, args ...interface{}) {
|
func generateTable(description string, isSubtree bool, args ...any) {
|
||||||
GinkgoHelper()
|
GinkgoHelper()
|
||||||
cl := types.NewCodeLocation(0)
|
cl := types.NewCodeLocation(0)
|
||||||
containerNodeArgs := []interface{}{cl}
|
containerNodeArgs := []any{cl}
|
||||||
|
|
||||||
entries := []TableEntry{}
|
entries := []TableEntry{}
|
||||||
var internalBody interface{}
|
var internalBody any
|
||||||
var internalBodyType reflect.Type
|
var internalBodyType reflect.Type
|
||||||
|
|
||||||
var tableLevelEntryDescription interface{}
|
var tableLevelEntryDescription any
|
||||||
tableLevelEntryDescription = func(args ...interface{}) string {
|
tableLevelEntryDescription = func(args ...any) string {
|
||||||
out := []string{}
|
out := []string{}
|
||||||
for _, arg := range args {
|
for _, arg := range args {
|
||||||
out = append(out, fmt.Sprint(arg))
|
out = append(out, fmt.Sprint(arg))
|
||||||
@ -265,7 +265,7 @@ func generateTable(description string, isSubtree bool, args ...interface{}) {
|
|||||||
err = types.GinkgoErrors.InvalidEntryDescription(entry.codeLocation)
|
err = types.GinkgoErrors.InvalidEntryDescription(entry.codeLocation)
|
||||||
}
|
}
|
||||||
|
|
||||||
internalNodeArgs := []interface{}{entry.codeLocation}
|
internalNodeArgs := []any{entry.codeLocation}
|
||||||
internalNodeArgs = append(internalNodeArgs, entry.decorations...)
|
internalNodeArgs = append(internalNodeArgs, entry.decorations...)
|
||||||
|
|
||||||
hasContext := false
|
hasContext := false
|
||||||
@ -290,7 +290,7 @@ func generateTable(description string, isSubtree bool, args ...interface{}) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
invokeFunction(internalBody, append([]interface{}{c}, entry.parameters...))
|
invokeFunction(internalBody, append([]any{c}, entry.parameters...))
|
||||||
})
|
})
|
||||||
if isSubtree {
|
if isSubtree {
|
||||||
exitIfErr(types.GinkgoErrors.ContextsCannotBeUsedInSubtreeTables(cl))
|
exitIfErr(types.GinkgoErrors.ContextsCannotBeUsedInSubtreeTables(cl))
|
||||||
@ -316,7 +316,7 @@ func generateTable(description string, isSubtree bool, args ...interface{}) {
|
|||||||
pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, description, containerNodeArgs...))
|
pushNode(internal.NewNode(deprecationTracker, types.NodeTypeContainer, description, containerNodeArgs...))
|
||||||
}
|
}
|
||||||
|
|
||||||
func invokeFunction(function interface{}, parameters []interface{}) []reflect.Value {
|
func invokeFunction(function any, parameters []any) []reflect.Value {
|
||||||
inValues := make([]reflect.Value, len(parameters))
|
inValues := make([]reflect.Value, len(parameters))
|
||||||
|
|
||||||
funcType := reflect.TypeOf(function)
|
funcType := reflect.TypeOf(function)
|
||||||
@ -339,7 +339,7 @@ func invokeFunction(function interface{}, parameters []interface{}) []reflect.Va
|
|||||||
return reflect.ValueOf(function).Call(inValues)
|
return reflect.ValueOf(function).Call(inValues)
|
||||||
}
|
}
|
||||||
|
|
||||||
func validateParameters(function interface{}, parameters []interface{}, kind string, cl types.CodeLocation, hasContext bool) error {
|
func validateParameters(function any, parameters []any, kind string, cl types.CodeLocation, hasContext bool) error {
|
||||||
funcType := reflect.TypeOf(function)
|
funcType := reflect.TypeOf(function)
|
||||||
limit := funcType.NumIn()
|
limit := funcType.NumIn()
|
||||||
offset := 0
|
offset := 0
|
||||||
@ -377,7 +377,7 @@ func validateParameters(function interface{}, parameters []interface{}, kind str
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func computeValue(parameter interface{}, t reflect.Type) reflect.Value {
|
func computeValue(parameter any, t reflect.Type) reflect.Value {
|
||||||
if parameter == nil {
|
if parameter == nil {
|
||||||
return reflect.Zero(t)
|
return reflect.Zero(t)
|
||||||
} else {
|
} else {
|
||||||
|
16
e2e/vendor/github.com/onsi/ginkgo/v2/types/config.go
generated
vendored
16
e2e/vendor/github.com/onsi/ginkgo/v2/types/config.go
generated
vendored
@ -365,7 +365,7 @@ var ReporterConfigFlags = GinkgoFlags{
|
|||||||
func BuildTestSuiteFlagSet(suiteConfig *SuiteConfig, reporterConfig *ReporterConfig) (GinkgoFlagSet, error) {
|
func BuildTestSuiteFlagSet(suiteConfig *SuiteConfig, reporterConfig *ReporterConfig) (GinkgoFlagSet, error) {
|
||||||
flags := SuiteConfigFlags.CopyAppend(ParallelConfigFlags...).CopyAppend(ReporterConfigFlags...)
|
flags := SuiteConfigFlags.CopyAppend(ParallelConfigFlags...).CopyAppend(ReporterConfigFlags...)
|
||||||
flags = flags.WithPrefix("ginkgo")
|
flags = flags.WithPrefix("ginkgo")
|
||||||
bindings := map[string]interface{}{
|
bindings := map[string]any{
|
||||||
"S": suiteConfig,
|
"S": suiteConfig,
|
||||||
"R": reporterConfig,
|
"R": reporterConfig,
|
||||||
"D": &deprecatedConfig{},
|
"D": &deprecatedConfig{},
|
||||||
@ -646,7 +646,7 @@ func GenerateGoTestCompileArgs(goFlagsConfig GoFlagsConfig, packageToBuild strin
|
|||||||
args := []string{"test", "-c", packageToBuild}
|
args := []string{"test", "-c", packageToBuild}
|
||||||
goArgs, err := GenerateFlagArgs(
|
goArgs, err := GenerateFlagArgs(
|
||||||
GoBuildFlags,
|
GoBuildFlags,
|
||||||
map[string]interface{}{
|
map[string]any{
|
||||||
"Go": &goFlagsConfig,
|
"Go": &goFlagsConfig,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
@ -665,7 +665,7 @@ func GenerateGinkgoTestRunArgs(suiteConfig SuiteConfig, reporterConfig ReporterC
|
|||||||
flags = flags.CopyAppend(ParallelConfigFlags.WithPrefix("ginkgo")...)
|
flags = flags.CopyAppend(ParallelConfigFlags.WithPrefix("ginkgo")...)
|
||||||
flags = flags.CopyAppend(ReporterConfigFlags.WithPrefix("ginkgo")...)
|
flags = flags.CopyAppend(ReporterConfigFlags.WithPrefix("ginkgo")...)
|
||||||
flags = flags.CopyAppend(GoRunFlags.WithPrefix("test")...)
|
flags = flags.CopyAppend(GoRunFlags.WithPrefix("test")...)
|
||||||
bindings := map[string]interface{}{
|
bindings := map[string]any{
|
||||||
"S": &suiteConfig,
|
"S": &suiteConfig,
|
||||||
"R": &reporterConfig,
|
"R": &reporterConfig,
|
||||||
"Go": &goFlagsConfig,
|
"Go": &goFlagsConfig,
|
||||||
@ -677,7 +677,7 @@ func GenerateGinkgoTestRunArgs(suiteConfig SuiteConfig, reporterConfig ReporterC
|
|||||||
// GenerateGoTestRunArgs is used by the Ginkgo CLI to generate command line arguments to pass to the compiled non-Ginkgo test binary
|
// GenerateGoTestRunArgs is used by the Ginkgo CLI to generate command line arguments to pass to the compiled non-Ginkgo test binary
|
||||||
func GenerateGoTestRunArgs(goFlagsConfig GoFlagsConfig) ([]string, error) {
|
func GenerateGoTestRunArgs(goFlagsConfig GoFlagsConfig) ([]string, error) {
|
||||||
flags := GoRunFlags.WithPrefix("test")
|
flags := GoRunFlags.WithPrefix("test")
|
||||||
bindings := map[string]interface{}{
|
bindings := map[string]any{
|
||||||
"Go": &goFlagsConfig,
|
"Go": &goFlagsConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -699,7 +699,7 @@ func BuildRunCommandFlagSet(suiteConfig *SuiteConfig, reporterConfig *ReporterCo
|
|||||||
flags = flags.CopyAppend(GoBuildFlags...)
|
flags = flags.CopyAppend(GoBuildFlags...)
|
||||||
flags = flags.CopyAppend(GoRunFlags...)
|
flags = flags.CopyAppend(GoRunFlags...)
|
||||||
|
|
||||||
bindings := map[string]interface{}{
|
bindings := map[string]any{
|
||||||
"S": suiteConfig,
|
"S": suiteConfig,
|
||||||
"R": reporterConfig,
|
"R": reporterConfig,
|
||||||
"C": cliConfig,
|
"C": cliConfig,
|
||||||
@ -720,7 +720,7 @@ func BuildWatchCommandFlagSet(suiteConfig *SuiteConfig, reporterConfig *Reporter
|
|||||||
flags = flags.CopyAppend(GoBuildFlags...)
|
flags = flags.CopyAppend(GoBuildFlags...)
|
||||||
flags = flags.CopyAppend(GoRunFlags...)
|
flags = flags.CopyAppend(GoRunFlags...)
|
||||||
|
|
||||||
bindings := map[string]interface{}{
|
bindings := map[string]any{
|
||||||
"S": suiteConfig,
|
"S": suiteConfig,
|
||||||
"R": reporterConfig,
|
"R": reporterConfig,
|
||||||
"C": cliConfig,
|
"C": cliConfig,
|
||||||
@ -736,7 +736,7 @@ func BuildBuildCommandFlagSet(cliConfig *CLIConfig, goFlagsConfig *GoFlagsConfig
|
|||||||
flags := GinkgoCLISharedFlags
|
flags := GinkgoCLISharedFlags
|
||||||
flags = flags.CopyAppend(GoBuildFlags...)
|
flags = flags.CopyAppend(GoBuildFlags...)
|
||||||
|
|
||||||
bindings := map[string]interface{}{
|
bindings := map[string]any{
|
||||||
"C": cliConfig,
|
"C": cliConfig,
|
||||||
"Go": goFlagsConfig,
|
"Go": goFlagsConfig,
|
||||||
"D": &deprecatedConfig{},
|
"D": &deprecatedConfig{},
|
||||||
@ -760,7 +760,7 @@ func BuildBuildCommandFlagSet(cliConfig *CLIConfig, goFlagsConfig *GoFlagsConfig
|
|||||||
func BuildLabelsCommandFlagSet(cliConfig *CLIConfig) (GinkgoFlagSet, error) {
|
func BuildLabelsCommandFlagSet(cliConfig *CLIConfig) (GinkgoFlagSet, error) {
|
||||||
flags := GinkgoCLISharedFlags.SubsetWithNames("r", "skip-package")
|
flags := GinkgoCLISharedFlags.SubsetWithNames("r", "skip-package")
|
||||||
|
|
||||||
bindings := map[string]interface{}{
|
bindings := map[string]any{
|
||||||
"C": cliConfig,
|
"C": cliConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/types/deprecated_types.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/types/deprecated_types.go
generated
vendored
@ -113,7 +113,7 @@ type DeprecatedSpecFailure struct {
|
|||||||
|
|
||||||
type DeprecatedSpecMeasurement struct {
|
type DeprecatedSpecMeasurement struct {
|
||||||
Name string
|
Name string
|
||||||
Info interface{}
|
Info any
|
||||||
Order int
|
Order int
|
||||||
|
|
||||||
Results []float64
|
Results []float64
|
||||||
|
8
e2e/vendor/github.com/onsi/ginkgo/v2/types/errors.go
generated
vendored
8
e2e/vendor/github.com/onsi/ginkgo/v2/types/errors.go
generated
vendored
@ -88,7 +88,7 @@ body of a {{bold}}Describe{{/}}, {{bold}}Context{{/}}, or {{bold}}When{{/}}.`, n
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g ginkgoErrors) CaughtPanicDuringABuildPhase(caughtPanic interface{}, cl CodeLocation) error {
|
func (g ginkgoErrors) CaughtPanicDuringABuildPhase(caughtPanic any, cl CodeLocation) error {
|
||||||
return GinkgoError{
|
return GinkgoError{
|
||||||
Heading: "Assertion or Panic detected during tree construction",
|
Heading: "Assertion or Panic detected during tree construction",
|
||||||
Message: formatter.F(
|
Message: formatter.F(
|
||||||
@ -189,7 +189,7 @@ func (g ginkgoErrors) InvalidDeclarationOfFlakeAttemptsAndMustPassRepeatedly(cl
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (g ginkgoErrors) UnknownDecorator(cl CodeLocation, nodeType NodeType, decorator interface{}) error {
|
func (g ginkgoErrors) UnknownDecorator(cl CodeLocation, nodeType NodeType, decorator any) error {
|
||||||
return GinkgoError{
|
return GinkgoError{
|
||||||
Heading: "Unknown Decorator",
|
Heading: "Unknown Decorator",
|
||||||
Message: formatter.F(`[%s] node was passed an unknown decorator: '%#v'`, nodeType, decorator),
|
Message: formatter.F(`[%s] node was passed an unknown decorator: '%#v'`, nodeType, decorator),
|
||||||
@ -345,7 +345,7 @@ func (g ginkgoErrors) PushingCleanupInCleanupNode(cl CodeLocation) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* ReportEntry errors */
|
/* ReportEntry errors */
|
||||||
func (g ginkgoErrors) TooManyReportEntryValues(cl CodeLocation, arg interface{}) error {
|
func (g ginkgoErrors) TooManyReportEntryValues(cl CodeLocation, arg any) error {
|
||||||
return GinkgoError{
|
return GinkgoError{
|
||||||
Heading: "Too Many ReportEntry Values",
|
Heading: "Too Many ReportEntry Values",
|
||||||
Message: formatter.F(`{{bold}}AddGinkgoReport{{/}} can only be given one value. Got unexpected value: %#v`, arg),
|
Message: formatter.F(`{{bold}}AddGinkgoReport{{/}} can only be given one value. Got unexpected value: %#v`, arg),
|
||||||
@ -539,7 +539,7 @@ func (g ginkgoErrors) SynchronizedBeforeSuiteDisappearedOnProc1() error {
|
|||||||
|
|
||||||
/* Configuration errors */
|
/* Configuration errors */
|
||||||
|
|
||||||
func (g ginkgoErrors) UnknownTypePassedToRunSpecs(value interface{}) error {
|
func (g ginkgoErrors) UnknownTypePassedToRunSpecs(value any) error {
|
||||||
return GinkgoError{
|
return GinkgoError{
|
||||||
Heading: "Unknown Type passed to RunSpecs",
|
Heading: "Unknown Type passed to RunSpecs",
|
||||||
Message: fmt.Sprintf("RunSpecs() accepts labels, and configuration of type types.SuiteConfig and/or types.ReporterConfig.\n You passed in: %v", value),
|
Message: fmt.Sprintf("RunSpecs() accepts labels, and configuration of type types.SuiteConfig and/or types.ReporterConfig.\n You passed in: %v", value),
|
||||||
|
10
e2e/vendor/github.com/onsi/ginkgo/v2/types/flags.go
generated
vendored
10
e2e/vendor/github.com/onsi/ginkgo/v2/types/flags.go
generated
vendored
@ -92,7 +92,7 @@ func (gfs GinkgoFlagSections) Lookup(key string) (GinkgoFlagSection, bool) {
|
|||||||
|
|
||||||
type GinkgoFlagSet struct {
|
type GinkgoFlagSet struct {
|
||||||
flags GinkgoFlags
|
flags GinkgoFlags
|
||||||
bindings interface{}
|
bindings any
|
||||||
|
|
||||||
sections GinkgoFlagSections
|
sections GinkgoFlagSections
|
||||||
extraGoFlagsSection GinkgoFlagSection
|
extraGoFlagsSection GinkgoFlagSection
|
||||||
@ -101,7 +101,7 @@ type GinkgoFlagSet struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call NewGinkgoFlagSet to create GinkgoFlagSet that creates and binds to it's own *flag.FlagSet
|
// Call NewGinkgoFlagSet to create GinkgoFlagSet that creates and binds to it's own *flag.FlagSet
|
||||||
func NewGinkgoFlagSet(flags GinkgoFlags, bindings interface{}, sections GinkgoFlagSections) (GinkgoFlagSet, error) {
|
func NewGinkgoFlagSet(flags GinkgoFlags, bindings any, sections GinkgoFlagSections) (GinkgoFlagSet, error) {
|
||||||
return bindFlagSet(GinkgoFlagSet{
|
return bindFlagSet(GinkgoFlagSet{
|
||||||
flags: flags,
|
flags: flags,
|
||||||
bindings: bindings,
|
bindings: bindings,
|
||||||
@ -110,7 +110,7 @@ func NewGinkgoFlagSet(flags GinkgoFlags, bindings interface{}, sections GinkgoFl
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Call NewGinkgoFlagSet to create GinkgoFlagSet that extends an existing *flag.FlagSet
|
// Call NewGinkgoFlagSet to create GinkgoFlagSet that extends an existing *flag.FlagSet
|
||||||
func NewAttachedGinkgoFlagSet(flagSet *flag.FlagSet, flags GinkgoFlags, bindings interface{}, sections GinkgoFlagSections, extraGoFlagsSection GinkgoFlagSection) (GinkgoFlagSet, error) {
|
func NewAttachedGinkgoFlagSet(flagSet *flag.FlagSet, flags GinkgoFlags, bindings any, sections GinkgoFlagSections, extraGoFlagsSection GinkgoFlagSection) (GinkgoFlagSet, error) {
|
||||||
return bindFlagSet(GinkgoFlagSet{
|
return bindFlagSet(GinkgoFlagSet{
|
||||||
flags: flags,
|
flags: flags,
|
||||||
bindings: bindings,
|
bindings: bindings,
|
||||||
@ -335,7 +335,7 @@ func (f GinkgoFlagSet) substituteUsage() {
|
|||||||
fmt.Fprintln(f.flagSet.Output(), f.Usage())
|
fmt.Fprintln(f.flagSet.Output(), f.Usage())
|
||||||
}
|
}
|
||||||
|
|
||||||
func valueAtKeyPath(root interface{}, keyPath string) (reflect.Value, bool) {
|
func valueAtKeyPath(root any, keyPath string) (reflect.Value, bool) {
|
||||||
if len(keyPath) == 0 {
|
if len(keyPath) == 0 {
|
||||||
return reflect.Value{}, false
|
return reflect.Value{}, false
|
||||||
}
|
}
|
||||||
@ -433,7 +433,7 @@ func (ssv stringSliceVar) Set(s string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// given a set of GinkgoFlags and bindings, generate flag arguments suitable to be passed to an application with that set of flags configured.
|
// given a set of GinkgoFlags and bindings, generate flag arguments suitable to be passed to an application with that set of flags configured.
|
||||||
func GenerateFlagArgs(flags GinkgoFlags, bindings interface{}) ([]string, error) {
|
func GenerateFlagArgs(flags GinkgoFlags, bindings any) ([]string, error) {
|
||||||
result := []string{}
|
result := []string{}
|
||||||
for _, flag := range flags {
|
for _, flag := range flags {
|
||||||
name := flag.ExportAs
|
name := flag.ExportAs
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/types/label_filter.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/types/label_filter.go
generated
vendored
@ -343,7 +343,7 @@ func tokenize(input string) func() (*treeNode, error) {
|
|||||||
consumeUntil := func(cutset string) (string, int) {
|
consumeUntil := func(cutset string) (string, int) {
|
||||||
j := i
|
j := i
|
||||||
for ; j < len(runes); j++ {
|
for ; j < len(runes); j++ {
|
||||||
if strings.IndexRune(cutset, runes[j]) >= 0 {
|
if strings.ContainsRune(cutset, runes[j]) {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
8
e2e/vendor/github.com/onsi/ginkgo/v2/types/report_entry.go
generated
vendored
8
e2e/vendor/github.com/onsi/ginkgo/v2/types/report_entry.go
generated
vendored
@ -9,18 +9,18 @@ import (
|
|||||||
// ReportEntryValue wraps a report entry's value ensuring it can be encoded and decoded safely into reports
|
// ReportEntryValue wraps a report entry's value ensuring it can be encoded and decoded safely into reports
|
||||||
// and across the network connection when running in parallel
|
// and across the network connection when running in parallel
|
||||||
type ReportEntryValue struct {
|
type ReportEntryValue struct {
|
||||||
raw interface{} //unexported to prevent gob from freaking out about unregistered structs
|
raw any //unexported to prevent gob from freaking out about unregistered structs
|
||||||
AsJSON string
|
AsJSON string
|
||||||
Representation string
|
Representation string
|
||||||
}
|
}
|
||||||
|
|
||||||
func WrapEntryValue(value interface{}) ReportEntryValue {
|
func WrapEntryValue(value any) ReportEntryValue {
|
||||||
return ReportEntryValue{
|
return ReportEntryValue{
|
||||||
raw: value,
|
raw: value,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (rev ReportEntryValue) GetRawValue() interface{} {
|
func (rev ReportEntryValue) GetRawValue() any {
|
||||||
return rev.raw
|
return rev.raw
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -118,7 +118,7 @@ func (entry ReportEntry) StringRepresentation() string {
|
|||||||
// If used from a rehydrated JSON file _or_ in a ReportAfterSuite when running in parallel this will be
|
// If used from a rehydrated JSON file _or_ in a ReportAfterSuite when running in parallel this will be
|
||||||
// a JSON-decoded {}interface. If you want to reconstitute your original object you can decode the entry.Value.AsJSON
|
// a JSON-decoded {}interface. If you want to reconstitute your original object you can decode the entry.Value.AsJSON
|
||||||
// field yourself.
|
// field yourself.
|
||||||
func (entry ReportEntry) GetRawValue() interface{} {
|
func (entry ReportEntry) GetRawValue() any {
|
||||||
return entry.Value.GetRawValue()
|
return entry.Value.GetRawValue()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
e2e/vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
2
e2e/vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
@ -1,3 +1,3 @@
|
|||||||
package types
|
package types
|
||||||
|
|
||||||
const VERSION = "2.22.2"
|
const VERSION = "2.23.0"
|
||||||
|
131
e2e/vendor/golang.org/x/tools/go/ast/inspector/inspector.go
generated
vendored
131
e2e/vendor/golang.org/x/tools/go/ast/inspector/inspector.go
generated
vendored
@ -36,6 +36,9 @@ package inspector
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"go/ast"
|
"go/ast"
|
||||||
|
_ "unsafe"
|
||||||
|
|
||||||
|
"golang.org/x/tools/internal/astutil/edge"
|
||||||
)
|
)
|
||||||
|
|
||||||
// An Inspector provides methods for inspecting
|
// An Inspector provides methods for inspecting
|
||||||
@ -44,6 +47,24 @@ type Inspector struct {
|
|||||||
events []event
|
events []event
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//go:linkname events
|
||||||
|
func events(in *Inspector) []event { return in.events }
|
||||||
|
|
||||||
|
func packEdgeKindAndIndex(ek edge.Kind, index int) int32 {
|
||||||
|
return int32(uint32(index+1)<<7 | uint32(ek))
|
||||||
|
}
|
||||||
|
|
||||||
|
// unpackEdgeKindAndIndex unpacks the edge kind and edge index (within
|
||||||
|
// an []ast.Node slice) from the parent field of a pop event.
|
||||||
|
//
|
||||||
|
//go:linkname unpackEdgeKindAndIndex
|
||||||
|
func unpackEdgeKindAndIndex(x int32) (edge.Kind, int) {
|
||||||
|
// The "parent" field of a pop node holds the
|
||||||
|
// edge Kind in the lower 7 bits and the index+1
|
||||||
|
// in the upper 25.
|
||||||
|
return edge.Kind(x & 0x7f), int(x>>7) - 1
|
||||||
|
}
|
||||||
|
|
||||||
// New returns an Inspector for the specified syntax trees.
|
// New returns an Inspector for the specified syntax trees.
|
||||||
func New(files []*ast.File) *Inspector {
|
func New(files []*ast.File) *Inspector {
|
||||||
return &Inspector{traverse(files)}
|
return &Inspector{traverse(files)}
|
||||||
@ -54,7 +75,8 @@ func New(files []*ast.File) *Inspector {
|
|||||||
type event struct {
|
type event struct {
|
||||||
node ast.Node
|
node ast.Node
|
||||||
typ uint64 // typeOf(node) on push event, or union of typ strictly between push and pop events on pop events
|
typ uint64 // typeOf(node) on push event, or union of typ strictly between push and pop events on pop events
|
||||||
index int // index of corresponding push or pop event
|
index int32 // index of corresponding push or pop event
|
||||||
|
parent int32 // index of parent's push node (push nodes only), or packed edge kind/index (pop nodes only)
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: Experiment with storing only the second word of event.node (unsafe.Pointer).
|
// TODO: Experiment with storing only the second word of event.node (unsafe.Pointer).
|
||||||
@ -83,7 +105,7 @@ func (in *Inspector) Preorder(types []ast.Node, f func(ast.Node)) {
|
|||||||
// })
|
// })
|
||||||
|
|
||||||
mask := maskOf(types)
|
mask := maskOf(types)
|
||||||
for i := 0; i < len(in.events); {
|
for i := int32(0); i < int32(len(in.events)); {
|
||||||
ev := in.events[i]
|
ev := in.events[i]
|
||||||
if ev.index > i {
|
if ev.index > i {
|
||||||
// push
|
// push
|
||||||
@ -113,7 +135,7 @@ func (in *Inspector) Preorder(types []ast.Node, f func(ast.Node)) {
|
|||||||
// matches an element of the types slice.
|
// matches an element of the types slice.
|
||||||
func (in *Inspector) Nodes(types []ast.Node, f func(n ast.Node, push bool) (proceed bool)) {
|
func (in *Inspector) Nodes(types []ast.Node, f func(n ast.Node, push bool) (proceed bool)) {
|
||||||
mask := maskOf(types)
|
mask := maskOf(types)
|
||||||
for i := 0; i < len(in.events); {
|
for i := int32(0); i < int32(len(in.events)); {
|
||||||
ev := in.events[i]
|
ev := in.events[i]
|
||||||
if ev.index > i {
|
if ev.index > i {
|
||||||
// push
|
// push
|
||||||
@ -147,7 +169,7 @@ func (in *Inspector) Nodes(types []ast.Node, f func(n ast.Node, push bool) (proc
|
|||||||
func (in *Inspector) WithStack(types []ast.Node, f func(n ast.Node, push bool, stack []ast.Node) (proceed bool)) {
|
func (in *Inspector) WithStack(types []ast.Node, f func(n ast.Node, push bool, stack []ast.Node) (proceed bool)) {
|
||||||
mask := maskOf(types)
|
mask := maskOf(types)
|
||||||
var stack []ast.Node
|
var stack []ast.Node
|
||||||
for i := 0; i < len(in.events); {
|
for i := int32(0); i < int32(len(in.events)); {
|
||||||
ev := in.events[i]
|
ev := in.events[i]
|
||||||
if ev.index > i {
|
if ev.index > i {
|
||||||
// push
|
// push
|
||||||
@ -189,43 +211,74 @@ func traverse(files []*ast.File) []event {
|
|||||||
extent += int(f.End() - f.Pos())
|
extent += int(f.End() - f.Pos())
|
||||||
}
|
}
|
||||||
// This estimate is based on the net/http package.
|
// This estimate is based on the net/http package.
|
||||||
capacity := extent * 33 / 100
|
capacity := min(extent*33/100, 1e6) // impose some reasonable maximum (1M)
|
||||||
if capacity > 1e6 {
|
|
||||||
capacity = 1e6 // impose some reasonable maximum
|
|
||||||
}
|
|
||||||
events := make([]event, 0, capacity)
|
|
||||||
|
|
||||||
var stack []event
|
v := &visitor{
|
||||||
stack = append(stack, event{}) // include an extra event so file nodes have a parent
|
events: make([]event, 0, capacity),
|
||||||
for _, f := range files {
|
stack: []item{{index: -1}}, // include an extra event so file nodes have a parent
|
||||||
ast.Inspect(f, func(n ast.Node) bool {
|
|
||||||
if n != nil {
|
|
||||||
// push
|
|
||||||
ev := event{
|
|
||||||
node: n,
|
|
||||||
typ: 0, // temporarily used to accumulate type bits of subtree
|
|
||||||
index: len(events), // push event temporarily holds own index
|
|
||||||
}
|
}
|
||||||
stack = append(stack, ev)
|
for _, file := range files {
|
||||||
events = append(events, ev)
|
walk(v, edge.Invalid, -1, file)
|
||||||
} else {
|
|
||||||
// pop
|
|
||||||
top := len(stack) - 1
|
|
||||||
ev := stack[top]
|
|
||||||
typ := typeOf(ev.node)
|
|
||||||
push := ev.index
|
|
||||||
parent := top - 1
|
|
||||||
|
|
||||||
events[push].typ = typ // set type of push
|
|
||||||
stack[parent].typ |= typ | ev.typ // parent's typ contains push and pop's typs.
|
|
||||||
events[push].index = len(events) // make push refer to pop
|
|
||||||
|
|
||||||
stack = stack[:top]
|
|
||||||
events = append(events, ev)
|
|
||||||
}
|
}
|
||||||
return true
|
return v.events
|
||||||
|
}
|
||||||
|
|
||||||
|
type visitor struct {
|
||||||
|
events []event
|
||||||
|
stack []item
|
||||||
|
}
|
||||||
|
|
||||||
|
type item struct {
|
||||||
|
index int32 // index of current node's push event
|
||||||
|
parentIndex int32 // index of parent node's push event
|
||||||
|
typAccum uint64 // accumulated type bits of current node's descendents
|
||||||
|
edgeKindAndIndex int32 // edge.Kind and index, bit packed
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *visitor) push(ek edge.Kind, eindex int, node ast.Node) {
|
||||||
|
var (
|
||||||
|
index = int32(len(v.events))
|
||||||
|
parentIndex = v.stack[len(v.stack)-1].index
|
||||||
|
)
|
||||||
|
v.events = append(v.events, event{
|
||||||
|
node: node,
|
||||||
|
parent: parentIndex,
|
||||||
|
typ: typeOf(node),
|
||||||
|
index: 0, // (pop index is set later by visitor.pop)
|
||||||
|
})
|
||||||
|
v.stack = append(v.stack, item{
|
||||||
|
index: index,
|
||||||
|
parentIndex: parentIndex,
|
||||||
|
edgeKindAndIndex: packEdgeKindAndIndex(ek, eindex),
|
||||||
|
})
|
||||||
|
|
||||||
|
// 2B nodes ought to be enough for anyone!
|
||||||
|
if int32(len(v.events)) < 0 {
|
||||||
|
panic("event index exceeded int32")
|
||||||
|
}
|
||||||
|
|
||||||
|
// 32M elements in an []ast.Node ought to be enough for anyone!
|
||||||
|
if ek2, eindex2 := unpackEdgeKindAndIndex(packEdgeKindAndIndex(ek, eindex)); ek2 != ek || eindex2 != eindex {
|
||||||
|
panic("Node slice index exceeded uint25")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (v *visitor) pop(node ast.Node) {
|
||||||
|
top := len(v.stack) - 1
|
||||||
|
current := v.stack[top]
|
||||||
|
|
||||||
|
push := &v.events[current.index]
|
||||||
|
parent := &v.stack[top-1]
|
||||||
|
|
||||||
|
push.index = int32(len(v.events)) // make push event refer to pop
|
||||||
|
parent.typAccum |= current.typAccum | push.typ // accumulate type bits into parent
|
||||||
|
|
||||||
|
v.stack = v.stack[:top]
|
||||||
|
|
||||||
|
v.events = append(v.events, event{
|
||||||
|
node: node,
|
||||||
|
typ: current.typAccum,
|
||||||
|
index: current.index,
|
||||||
|
parent: current.edgeKindAndIndex, // see [unpackEdgeKindAndIndex]
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
return events
|
|
||||||
}
|
|
||||||
|
4
e2e/vendor/golang.org/x/tools/go/ast/inspector/iter.go
generated
vendored
4
e2e/vendor/golang.org/x/tools/go/ast/inspector/iter.go
generated
vendored
@ -26,7 +26,7 @@ func (in *Inspector) PreorderSeq(types ...ast.Node) iter.Seq[ast.Node] {
|
|||||||
|
|
||||||
return func(yield func(ast.Node) bool) {
|
return func(yield func(ast.Node) bool) {
|
||||||
mask := maskOf(types)
|
mask := maskOf(types)
|
||||||
for i := 0; i < len(in.events); {
|
for i := int32(0); i < int32(len(in.events)); {
|
||||||
ev := in.events[i]
|
ev := in.events[i]
|
||||||
if ev.index > i {
|
if ev.index > i {
|
||||||
// push
|
// push
|
||||||
@ -63,7 +63,7 @@ func All[N interface {
|
|||||||
|
|
||||||
mask := typeOf((N)(nil))
|
mask := typeOf((N)(nil))
|
||||||
return func(yield func(N) bool) {
|
return func(yield func(N) bool) {
|
||||||
for i := 0; i < len(in.events); {
|
for i := int32(0); i < int32(len(in.events)); {
|
||||||
ev := in.events[i]
|
ev := in.events[i]
|
||||||
if ev.index > i {
|
if ev.index > i {
|
||||||
// push
|
// push
|
||||||
|
5
e2e/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
generated
vendored
5
e2e/vendor/golang.org/x/tools/go/ast/inspector/typeof.go
generated
vendored
@ -12,6 +12,8 @@ package inspector
|
|||||||
import (
|
import (
|
||||||
"go/ast"
|
"go/ast"
|
||||||
"math"
|
"math"
|
||||||
|
|
||||||
|
_ "unsafe"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
@ -215,8 +217,9 @@ func typeOf(n ast.Node) uint64 {
|
|||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//go:linkname maskOf
|
||||||
func maskOf(nodes []ast.Node) uint64 {
|
func maskOf(nodes []ast.Node) uint64 {
|
||||||
if nodes == nil {
|
if len(nodes) == 0 {
|
||||||
return math.MaxUint64 // match all node types
|
return math.MaxUint64 // match all node types
|
||||||
}
|
}
|
||||||
var mask uint64
|
var mask uint64
|
||||||
|
341
e2e/vendor/golang.org/x/tools/go/ast/inspector/walk.go
generated
vendored
Normal file
341
e2e/vendor/golang.org/x/tools/go/ast/inspector/walk.go
generated
vendored
Normal file
@ -0,0 +1,341 @@
|
|||||||
|
// Copyright 2025 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
package inspector
|
||||||
|
|
||||||
|
// This file is a fork of ast.Inspect to reduce unnecessary dynamic
|
||||||
|
// calls and to gather edge information.
|
||||||
|
//
|
||||||
|
// Consistency with the original is ensured by TestInspectAllNodes.
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"go/ast"
|
||||||
|
|
||||||
|
"golang.org/x/tools/internal/astutil/edge"
|
||||||
|
)
|
||||||
|
|
||||||
|
func walkList[N ast.Node](v *visitor, ek edge.Kind, list []N) {
|
||||||
|
for i, node := range list {
|
||||||
|
walk(v, ek, i, node)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func walk(v *visitor, ek edge.Kind, index int, node ast.Node) {
|
||||||
|
v.push(ek, index, node)
|
||||||
|
|
||||||
|
// walk children
|
||||||
|
// (the order of the cases matches the order
|
||||||
|
// of the corresponding node types in ast.go)
|
||||||
|
switch n := node.(type) {
|
||||||
|
// Comments and fields
|
||||||
|
case *ast.Comment:
|
||||||
|
// nothing to do
|
||||||
|
|
||||||
|
case *ast.CommentGroup:
|
||||||
|
walkList(v, edge.CommentGroup_List, n.List)
|
||||||
|
|
||||||
|
case *ast.Field:
|
||||||
|
if n.Doc != nil {
|
||||||
|
walk(v, edge.Field_Doc, -1, n.Doc)
|
||||||
|
}
|
||||||
|
walkList(v, edge.Field_Names, n.Names)
|
||||||
|
if n.Type != nil {
|
||||||
|
walk(v, edge.Field_Type, -1, n.Type)
|
||||||
|
}
|
||||||
|
if n.Tag != nil {
|
||||||
|
walk(v, edge.Field_Tag, -1, n.Tag)
|
||||||
|
}
|
||||||
|
if n.Comment != nil {
|
||||||
|
walk(v, edge.Field_Comment, -1, n.Comment)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.FieldList:
|
||||||
|
walkList(v, edge.FieldList_List, n.List)
|
||||||
|
|
||||||
|
// Expressions
|
||||||
|
case *ast.BadExpr, *ast.Ident, *ast.BasicLit:
|
||||||
|
// nothing to do
|
||||||
|
|
||||||
|
case *ast.Ellipsis:
|
||||||
|
if n.Elt != nil {
|
||||||
|
walk(v, edge.Ellipsis_Elt, -1, n.Elt)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.FuncLit:
|
||||||
|
walk(v, edge.FuncLit_Type, -1, n.Type)
|
||||||
|
walk(v, edge.FuncLit_Body, -1, n.Body)
|
||||||
|
|
||||||
|
case *ast.CompositeLit:
|
||||||
|
if n.Type != nil {
|
||||||
|
walk(v, edge.CompositeLit_Type, -1, n.Type)
|
||||||
|
}
|
||||||
|
walkList(v, edge.CompositeLit_Elts, n.Elts)
|
||||||
|
|
||||||
|
case *ast.ParenExpr:
|
||||||
|
walk(v, edge.ParenExpr_X, -1, n.X)
|
||||||
|
|
||||||
|
case *ast.SelectorExpr:
|
||||||
|
walk(v, edge.SelectorExpr_X, -1, n.X)
|
||||||
|
walk(v, edge.SelectorExpr_Sel, -1, n.Sel)
|
||||||
|
|
||||||
|
case *ast.IndexExpr:
|
||||||
|
walk(v, edge.IndexExpr_X, -1, n.X)
|
||||||
|
walk(v, edge.IndexExpr_Index, -1, n.Index)
|
||||||
|
|
||||||
|
case *ast.IndexListExpr:
|
||||||
|
walk(v, edge.IndexListExpr_X, -1, n.X)
|
||||||
|
walkList(v, edge.IndexListExpr_Indices, n.Indices)
|
||||||
|
|
||||||
|
case *ast.SliceExpr:
|
||||||
|
walk(v, edge.SliceExpr_X, -1, n.X)
|
||||||
|
if n.Low != nil {
|
||||||
|
walk(v, edge.SliceExpr_Low, -1, n.Low)
|
||||||
|
}
|
||||||
|
if n.High != nil {
|
||||||
|
walk(v, edge.SliceExpr_High, -1, n.High)
|
||||||
|
}
|
||||||
|
if n.Max != nil {
|
||||||
|
walk(v, edge.SliceExpr_Max, -1, n.Max)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.TypeAssertExpr:
|
||||||
|
walk(v, edge.TypeAssertExpr_X, -1, n.X)
|
||||||
|
if n.Type != nil {
|
||||||
|
walk(v, edge.TypeAssertExpr_Type, -1, n.Type)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.CallExpr:
|
||||||
|
walk(v, edge.CallExpr_Fun, -1, n.Fun)
|
||||||
|
walkList(v, edge.CallExpr_Args, n.Args)
|
||||||
|
|
||||||
|
case *ast.StarExpr:
|
||||||
|
walk(v, edge.StarExpr_X, -1, n.X)
|
||||||
|
|
||||||
|
case *ast.UnaryExpr:
|
||||||
|
walk(v, edge.UnaryExpr_X, -1, n.X)
|
||||||
|
|
||||||
|
case *ast.BinaryExpr:
|
||||||
|
walk(v, edge.BinaryExpr_X, -1, n.X)
|
||||||
|
walk(v, edge.BinaryExpr_Y, -1, n.Y)
|
||||||
|
|
||||||
|
case *ast.KeyValueExpr:
|
||||||
|
walk(v, edge.KeyValueExpr_Key, -1, n.Key)
|
||||||
|
walk(v, edge.KeyValueExpr_Value, -1, n.Value)
|
||||||
|
|
||||||
|
// Types
|
||||||
|
case *ast.ArrayType:
|
||||||
|
if n.Len != nil {
|
||||||
|
walk(v, edge.ArrayType_Len, -1, n.Len)
|
||||||
|
}
|
||||||
|
walk(v, edge.ArrayType_Elt, -1, n.Elt)
|
||||||
|
|
||||||
|
case *ast.StructType:
|
||||||
|
walk(v, edge.StructType_Fields, -1, n.Fields)
|
||||||
|
|
||||||
|
case *ast.FuncType:
|
||||||
|
if n.TypeParams != nil {
|
||||||
|
walk(v, edge.FuncType_TypeParams, -1, n.TypeParams)
|
||||||
|
}
|
||||||
|
if n.Params != nil {
|
||||||
|
walk(v, edge.FuncType_Params, -1, n.Params)
|
||||||
|
}
|
||||||
|
if n.Results != nil {
|
||||||
|
walk(v, edge.FuncType_Results, -1, n.Results)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.InterfaceType:
|
||||||
|
walk(v, edge.InterfaceType_Methods, -1, n.Methods)
|
||||||
|
|
||||||
|
case *ast.MapType:
|
||||||
|
walk(v, edge.MapType_Key, -1, n.Key)
|
||||||
|
walk(v, edge.MapType_Value, -1, n.Value)
|
||||||
|
|
||||||
|
case *ast.ChanType:
|
||||||
|
walk(v, edge.ChanType_Value, -1, n.Value)
|
||||||
|
|
||||||
|
// Statements
|
||||||
|
case *ast.BadStmt:
|
||||||
|
// nothing to do
|
||||||
|
|
||||||
|
case *ast.DeclStmt:
|
||||||
|
walk(v, edge.DeclStmt_Decl, -1, n.Decl)
|
||||||
|
|
||||||
|
case *ast.EmptyStmt:
|
||||||
|
// nothing to do
|
||||||
|
|
||||||
|
case *ast.LabeledStmt:
|
||||||
|
walk(v, edge.LabeledStmt_Label, -1, n.Label)
|
||||||
|
walk(v, edge.LabeledStmt_Stmt, -1, n.Stmt)
|
||||||
|
|
||||||
|
case *ast.ExprStmt:
|
||||||
|
walk(v, edge.ExprStmt_X, -1, n.X)
|
||||||
|
|
||||||
|
case *ast.SendStmt:
|
||||||
|
walk(v, edge.SendStmt_Chan, -1, n.Chan)
|
||||||
|
walk(v, edge.SendStmt_Value, -1, n.Value)
|
||||||
|
|
||||||
|
case *ast.IncDecStmt:
|
||||||
|
walk(v, edge.IncDecStmt_X, -1, n.X)
|
||||||
|
|
||||||
|
case *ast.AssignStmt:
|
||||||
|
walkList(v, edge.AssignStmt_Lhs, n.Lhs)
|
||||||
|
walkList(v, edge.AssignStmt_Rhs, n.Rhs)
|
||||||
|
|
||||||
|
case *ast.GoStmt:
|
||||||
|
walk(v, edge.GoStmt_Call, -1, n.Call)
|
||||||
|
|
||||||
|
case *ast.DeferStmt:
|
||||||
|
walk(v, edge.DeferStmt_Call, -1, n.Call)
|
||||||
|
|
||||||
|
case *ast.ReturnStmt:
|
||||||
|
walkList(v, edge.ReturnStmt_Results, n.Results)
|
||||||
|
|
||||||
|
case *ast.BranchStmt:
|
||||||
|
if n.Label != nil {
|
||||||
|
walk(v, edge.BranchStmt_Label, -1, n.Label)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.BlockStmt:
|
||||||
|
walkList(v, edge.BlockStmt_List, n.List)
|
||||||
|
|
||||||
|
case *ast.IfStmt:
|
||||||
|
if n.Init != nil {
|
||||||
|
walk(v, edge.IfStmt_Init, -1, n.Init)
|
||||||
|
}
|
||||||
|
walk(v, edge.IfStmt_Cond, -1, n.Cond)
|
||||||
|
walk(v, edge.IfStmt_Body, -1, n.Body)
|
||||||
|
if n.Else != nil {
|
||||||
|
walk(v, edge.IfStmt_Else, -1, n.Else)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.CaseClause:
|
||||||
|
walkList(v, edge.CaseClause_List, n.List)
|
||||||
|
walkList(v, edge.CaseClause_Body, n.Body)
|
||||||
|
|
||||||
|
case *ast.SwitchStmt:
|
||||||
|
if n.Init != nil {
|
||||||
|
walk(v, edge.SwitchStmt_Init, -1, n.Init)
|
||||||
|
}
|
||||||
|
if n.Tag != nil {
|
||||||
|
walk(v, edge.SwitchStmt_Tag, -1, n.Tag)
|
||||||
|
}
|
||||||
|
walk(v, edge.SwitchStmt_Body, -1, n.Body)
|
||||||
|
|
||||||
|
case *ast.TypeSwitchStmt:
|
||||||
|
if n.Init != nil {
|
||||||
|
walk(v, edge.TypeSwitchStmt_Init, -1, n.Init)
|
||||||
|
}
|
||||||
|
walk(v, edge.TypeSwitchStmt_Assign, -1, n.Assign)
|
||||||
|
walk(v, edge.TypeSwitchStmt_Body, -1, n.Body)
|
||||||
|
|
||||||
|
case *ast.CommClause:
|
||||||
|
if n.Comm != nil {
|
||||||
|
walk(v, edge.CommClause_Comm, -1, n.Comm)
|
||||||
|
}
|
||||||
|
walkList(v, edge.CommClause_Body, n.Body)
|
||||||
|
|
||||||
|
case *ast.SelectStmt:
|
||||||
|
walk(v, edge.SelectStmt_Body, -1, n.Body)
|
||||||
|
|
||||||
|
case *ast.ForStmt:
|
||||||
|
if n.Init != nil {
|
||||||
|
walk(v, edge.ForStmt_Init, -1, n.Init)
|
||||||
|
}
|
||||||
|
if n.Cond != nil {
|
||||||
|
walk(v, edge.ForStmt_Cond, -1, n.Cond)
|
||||||
|
}
|
||||||
|
if n.Post != nil {
|
||||||
|
walk(v, edge.ForStmt_Post, -1, n.Post)
|
||||||
|
}
|
||||||
|
walk(v, edge.ForStmt_Body, -1, n.Body)
|
||||||
|
|
||||||
|
case *ast.RangeStmt:
|
||||||
|
if n.Key != nil {
|
||||||
|
walk(v, edge.RangeStmt_Key, -1, n.Key)
|
||||||
|
}
|
||||||
|
if n.Value != nil {
|
||||||
|
walk(v, edge.RangeStmt_Value, -1, n.Value)
|
||||||
|
}
|
||||||
|
walk(v, edge.RangeStmt_X, -1, n.X)
|
||||||
|
walk(v, edge.RangeStmt_Body, -1, n.Body)
|
||||||
|
|
||||||
|
// Declarations
|
||||||
|
case *ast.ImportSpec:
|
||||||
|
if n.Doc != nil {
|
||||||
|
walk(v, edge.ImportSpec_Doc, -1, n.Doc)
|
||||||
|
}
|
||||||
|
if n.Name != nil {
|
||||||
|
walk(v, edge.ImportSpec_Name, -1, n.Name)
|
||||||
|
}
|
||||||
|
walk(v, edge.ImportSpec_Path, -1, n.Path)
|
||||||
|
if n.Comment != nil {
|
||||||
|
walk(v, edge.ImportSpec_Comment, -1, n.Comment)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.ValueSpec:
|
||||||
|
if n.Doc != nil {
|
||||||
|
walk(v, edge.ValueSpec_Doc, -1, n.Doc)
|
||||||
|
}
|
||||||
|
walkList(v, edge.ValueSpec_Names, n.Names)
|
||||||
|
if n.Type != nil {
|
||||||
|
walk(v, edge.ValueSpec_Type, -1, n.Type)
|
||||||
|
}
|
||||||
|
walkList(v, edge.ValueSpec_Values, n.Values)
|
||||||
|
if n.Comment != nil {
|
||||||
|
walk(v, edge.ValueSpec_Comment, -1, n.Comment)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.TypeSpec:
|
||||||
|
if n.Doc != nil {
|
||||||
|
walk(v, edge.TypeSpec_Doc, -1, n.Doc)
|
||||||
|
}
|
||||||
|
walk(v, edge.TypeSpec_Name, -1, n.Name)
|
||||||
|
if n.TypeParams != nil {
|
||||||
|
walk(v, edge.TypeSpec_TypeParams, -1, n.TypeParams)
|
||||||
|
}
|
||||||
|
walk(v, edge.TypeSpec_Type, -1, n.Type)
|
||||||
|
if n.Comment != nil {
|
||||||
|
walk(v, edge.TypeSpec_Comment, -1, n.Comment)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.BadDecl:
|
||||||
|
// nothing to do
|
||||||
|
|
||||||
|
case *ast.GenDecl:
|
||||||
|
if n.Doc != nil {
|
||||||
|
walk(v, edge.GenDecl_Doc, -1, n.Doc)
|
||||||
|
}
|
||||||
|
walkList(v, edge.GenDecl_Specs, n.Specs)
|
||||||
|
|
||||||
|
case *ast.FuncDecl:
|
||||||
|
if n.Doc != nil {
|
||||||
|
walk(v, edge.FuncDecl_Doc, -1, n.Doc)
|
||||||
|
}
|
||||||
|
if n.Recv != nil {
|
||||||
|
walk(v, edge.FuncDecl_Recv, -1, n.Recv)
|
||||||
|
}
|
||||||
|
walk(v, edge.FuncDecl_Name, -1, n.Name)
|
||||||
|
walk(v, edge.FuncDecl_Type, -1, n.Type)
|
||||||
|
if n.Body != nil {
|
||||||
|
walk(v, edge.FuncDecl_Body, -1, n.Body)
|
||||||
|
}
|
||||||
|
|
||||||
|
case *ast.File:
|
||||||
|
if n.Doc != nil {
|
||||||
|
walk(v, edge.File_Doc, -1, n.Doc)
|
||||||
|
}
|
||||||
|
walk(v, edge.File_Name, -1, n.Name)
|
||||||
|
walkList(v, edge.File_Decls, n.Decls)
|
||||||
|
// don't walk n.Comments - they have been
|
||||||
|
// visited already through the individual
|
||||||
|
// nodes
|
||||||
|
|
||||||
|
default:
|
||||||
|
// (includes *ast.Package)
|
||||||
|
panic(fmt.Sprintf("Walk: unexpected node type %T", n))
|
||||||
|
}
|
||||||
|
|
||||||
|
v.pop(node)
|
||||||
|
}
|
295
e2e/vendor/golang.org/x/tools/internal/astutil/edge/edge.go
generated
vendored
Normal file
295
e2e/vendor/golang.org/x/tools/internal/astutil/edge/edge.go
generated
vendored
Normal file
@ -0,0 +1,295 @@
|
|||||||
|
// Copyright 2025 The Go Authors. All rights reserved.
|
||||||
|
// Use of this source code is governed by a BSD-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
// Package edge defines identifiers for each field of an ast.Node
|
||||||
|
// struct type that refers to another Node.
|
||||||
|
package edge
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"go/ast"
|
||||||
|
"reflect"
|
||||||
|
)
|
||||||
|
|
||||||
|
// A Kind describes a field of an ast.Node struct.
|
||||||
|
type Kind uint8
|
||||||
|
|
||||||
|
// String returns a description of the edge kind.
|
||||||
|
func (k Kind) String() string {
|
||||||
|
if k == Invalid {
|
||||||
|
return "<invalid>"
|
||||||
|
}
|
||||||
|
info := fieldInfos[k]
|
||||||
|
return fmt.Sprintf("%v.%s", info.nodeType.Elem().Name(), info.name)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NodeType returns the pointer-to-struct type of the ast.Node implementation.
|
||||||
|
func (k Kind) NodeType() reflect.Type { return fieldInfos[k].nodeType }
|
||||||
|
|
||||||
|
// FieldName returns the name of the field.
|
||||||
|
func (k Kind) FieldName() string { return fieldInfos[k].name }
|
||||||
|
|
||||||
|
// FieldType returns the declared type of the field.
|
||||||
|
func (k Kind) FieldType() reflect.Type { return fieldInfos[k].fieldType }
|
||||||
|
|
||||||
|
// Get returns the direct child of n identified by (k, idx).
|
||||||
|
// n's type must match k.NodeType().
|
||||||
|
// idx must be a valid slice index, or -1 for a non-slice.
|
||||||
|
func (k Kind) Get(n ast.Node, idx int) ast.Node {
|
||||||
|
if k.NodeType() != reflect.TypeOf(n) {
|
||||||
|
panic(fmt.Sprintf("%v.Get(%T): invalid node type", k, n))
|
||||||
|
}
|
||||||
|
v := reflect.ValueOf(n).Elem().Field(fieldInfos[k].index)
|
||||||
|
if idx != -1 {
|
||||||
|
v = v.Index(idx) // asserts valid index
|
||||||
|
} else {
|
||||||
|
// (The type assertion below asserts that v is not a slice.)
|
||||||
|
}
|
||||||
|
return v.Interface().(ast.Node) // may be nil
|
||||||
|
}
|
||||||
|
|
||||||
|
const (
|
||||||
|
Invalid Kind = iota // for nodes at the root of the traversal
|
||||||
|
|
||||||
|
// Kinds are sorted alphabetically.
|
||||||
|
// Numbering is not stable.
|
||||||
|
// Each is named Type_Field, where Type is the
|
||||||
|
// ast.Node struct type and Field is the name of the field
|
||||||
|
|
||||||
|
ArrayType_Elt
|
||||||
|
ArrayType_Len
|
||||||
|
AssignStmt_Lhs
|
||||||
|
AssignStmt_Rhs
|
||||||
|
BinaryExpr_X
|
||||||
|
BinaryExpr_Y
|
||||||
|
BlockStmt_List
|
||||||
|
BranchStmt_Label
|
||||||
|
CallExpr_Args
|
||||||
|
CallExpr_Fun
|
||||||
|
CaseClause_Body
|
||||||
|
CaseClause_List
|
||||||
|
ChanType_Value
|
||||||
|
CommClause_Body
|
||||||
|
CommClause_Comm
|
||||||
|
CommentGroup_List
|
||||||
|
CompositeLit_Elts
|
||||||
|
CompositeLit_Type
|
||||||
|
DeclStmt_Decl
|
||||||
|
DeferStmt_Call
|
||||||
|
Ellipsis_Elt
|
||||||
|
ExprStmt_X
|
||||||
|
FieldList_List
|
||||||
|
Field_Comment
|
||||||
|
Field_Doc
|
||||||
|
Field_Names
|
||||||
|
Field_Tag
|
||||||
|
Field_Type
|
||||||
|
File_Decls
|
||||||
|
File_Doc
|
||||||
|
File_Name
|
||||||
|
ForStmt_Body
|
||||||
|
ForStmt_Cond
|
||||||
|
ForStmt_Init
|
||||||
|
ForStmt_Post
|
||||||
|
FuncDecl_Body
|
||||||
|
FuncDecl_Doc
|
||||||
|
FuncDecl_Name
|
||||||
|
FuncDecl_Recv
|
||||||
|
FuncDecl_Type
|
||||||
|
FuncLit_Body
|
||||||
|
FuncLit_Type
|
||||||
|
FuncType_Params
|
||||||
|
FuncType_Results
|
||||||
|
FuncType_TypeParams
|
||||||
|
GenDecl_Doc
|
||||||
|
GenDecl_Specs
|
||||||
|
GoStmt_Call
|
||||||
|
IfStmt_Body
|
||||||
|
IfStmt_Cond
|
||||||
|
IfStmt_Else
|
||||||
|
IfStmt_Init
|
||||||
|
ImportSpec_Comment
|
||||||
|
ImportSpec_Doc
|
||||||
|
ImportSpec_Name
|
||||||
|
ImportSpec_Path
|
||||||
|
IncDecStmt_X
|
||||||
|
IndexExpr_Index
|
||||||
|
IndexExpr_X
|
||||||
|
IndexListExpr_Indices
|
||||||
|
IndexListExpr_X
|
||||||
|
InterfaceType_Methods
|
||||||
|
KeyValueExpr_Key
|
||||||
|
KeyValueExpr_Value
|
||||||
|
LabeledStmt_Label
|
||||||
|
LabeledStmt_Stmt
|
||||||
|
MapType_Key
|
||||||
|
MapType_Value
|
||||||
|
ParenExpr_X
|
||||||
|
RangeStmt_Body
|
||||||
|
RangeStmt_Key
|
||||||
|
RangeStmt_Value
|
||||||
|
RangeStmt_X
|
||||||
|
ReturnStmt_Results
|
||||||
|
SelectStmt_Body
|
||||||
|
SelectorExpr_Sel
|
||||||
|
SelectorExpr_X
|
||||||
|
SendStmt_Chan
|
||||||
|
SendStmt_Value
|
||||||
|
SliceExpr_High
|
||||||
|
SliceExpr_Low
|
||||||
|
SliceExpr_Max
|
||||||
|
SliceExpr_X
|
||||||
|
StarExpr_X
|
||||||
|
StructType_Fields
|
||||||
|
SwitchStmt_Body
|
||||||
|
SwitchStmt_Init
|
||||||
|
SwitchStmt_Tag
|
||||||
|
TypeAssertExpr_Type
|
||||||
|
TypeAssertExpr_X
|
||||||
|
TypeSpec_Comment
|
||||||
|
TypeSpec_Doc
|
||||||
|
TypeSpec_Name
|
||||||
|
TypeSpec_Type
|
||||||
|
TypeSpec_TypeParams
|
||||||
|
TypeSwitchStmt_Assign
|
||||||
|
TypeSwitchStmt_Body
|
||||||
|
TypeSwitchStmt_Init
|
||||||
|
UnaryExpr_X
|
||||||
|
ValueSpec_Comment
|
||||||
|
ValueSpec_Doc
|
||||||
|
ValueSpec_Names
|
||||||
|
ValueSpec_Type
|
||||||
|
ValueSpec_Values
|
||||||
|
|
||||||
|
maxKind
|
||||||
|
)
|
||||||
|
|
||||||
|
// Assert that the encoding fits in 7 bits,
|
||||||
|
// as the inspector relies on this.
|
||||||
|
// (We are currently at 104.)
|
||||||
|
var _ = [1 << 7]struct{}{}[maxKind]
|
||||||
|
|
||||||
|
type fieldInfo struct {
|
||||||
|
nodeType reflect.Type // pointer-to-struct type of ast.Node implementation
|
||||||
|
name string
|
||||||
|
index int
|
||||||
|
fieldType reflect.Type
|
||||||
|
}
|
||||||
|
|
||||||
|
func info[N ast.Node](fieldName string) fieldInfo {
|
||||||
|
nodePtrType := reflect.TypeFor[N]()
|
||||||
|
f, ok := nodePtrType.Elem().FieldByName(fieldName)
|
||||||
|
if !ok {
|
||||||
|
panic(fieldName)
|
||||||
|
}
|
||||||
|
return fieldInfo{nodePtrType, fieldName, f.Index[0], f.Type}
|
||||||
|
}
|
||||||
|
|
||||||
|
var fieldInfos = [...]fieldInfo{
|
||||||
|
Invalid: {},
|
||||||
|
ArrayType_Elt: info[*ast.ArrayType]("Elt"),
|
||||||
|
ArrayType_Len: info[*ast.ArrayType]("Len"),
|
||||||
|
AssignStmt_Lhs: info[*ast.AssignStmt]("Lhs"),
|
||||||
|
AssignStmt_Rhs: info[*ast.AssignStmt]("Rhs"),
|
||||||
|
BinaryExpr_X: info[*ast.BinaryExpr]("X"),
|
||||||
|
BinaryExpr_Y: info[*ast.BinaryExpr]("Y"),
|
||||||
|
BlockStmt_List: info[*ast.BlockStmt]("List"),
|
||||||
|
BranchStmt_Label: info[*ast.BranchStmt]("Label"),
|
||||||
|
CallExpr_Args: info[*ast.CallExpr]("Args"),
|
||||||
|
CallExpr_Fun: info[*ast.CallExpr]("Fun"),
|
||||||
|
CaseClause_Body: info[*ast.CaseClause]("Body"),
|
||||||
|
CaseClause_List: info[*ast.CaseClause]("List"),
|
||||||
|
ChanType_Value: info[*ast.ChanType]("Value"),
|
||||||
|
CommClause_Body: info[*ast.CommClause]("Body"),
|
||||||
|
CommClause_Comm: info[*ast.CommClause]("Comm"),
|
||||||
|
CommentGroup_List: info[*ast.CommentGroup]("List"),
|
||||||
|
CompositeLit_Elts: info[*ast.CompositeLit]("Elts"),
|
||||||
|
CompositeLit_Type: info[*ast.CompositeLit]("Type"),
|
||||||
|
DeclStmt_Decl: info[*ast.DeclStmt]("Decl"),
|
||||||
|
DeferStmt_Call: info[*ast.DeferStmt]("Call"),
|
||||||
|
Ellipsis_Elt: info[*ast.Ellipsis]("Elt"),
|
||||||
|
ExprStmt_X: info[*ast.ExprStmt]("X"),
|
||||||
|
FieldList_List: info[*ast.FieldList]("List"),
|
||||||
|
Field_Comment: info[*ast.Field]("Comment"),
|
||||||
|
Field_Doc: info[*ast.Field]("Doc"),
|
||||||
|
Field_Names: info[*ast.Field]("Names"),
|
||||||
|
Field_Tag: info[*ast.Field]("Tag"),
|
||||||
|
Field_Type: info[*ast.Field]("Type"),
|
||||||
|
File_Decls: info[*ast.File]("Decls"),
|
||||||
|
File_Doc: info[*ast.File]("Doc"),
|
||||||
|
File_Name: info[*ast.File]("Name"),
|
||||||
|
ForStmt_Body: info[*ast.ForStmt]("Body"),
|
||||||
|
ForStmt_Cond: info[*ast.ForStmt]("Cond"),
|
||||||
|
ForStmt_Init: info[*ast.ForStmt]("Init"),
|
||||||
|
ForStmt_Post: info[*ast.ForStmt]("Post"),
|
||||||
|
FuncDecl_Body: info[*ast.FuncDecl]("Body"),
|
||||||
|
FuncDecl_Doc: info[*ast.FuncDecl]("Doc"),
|
||||||
|
FuncDecl_Name: info[*ast.FuncDecl]("Name"),
|
||||||
|
FuncDecl_Recv: info[*ast.FuncDecl]("Recv"),
|
||||||
|
FuncDecl_Type: info[*ast.FuncDecl]("Type"),
|
||||||
|
FuncLit_Body: info[*ast.FuncLit]("Body"),
|
||||||
|
FuncLit_Type: info[*ast.FuncLit]("Type"),
|
||||||
|
FuncType_Params: info[*ast.FuncType]("Params"),
|
||||||
|
FuncType_Results: info[*ast.FuncType]("Results"),
|
||||||
|
FuncType_TypeParams: info[*ast.FuncType]("TypeParams"),
|
||||||
|
GenDecl_Doc: info[*ast.GenDecl]("Doc"),
|
||||||
|
GenDecl_Specs: info[*ast.GenDecl]("Specs"),
|
||||||
|
GoStmt_Call: info[*ast.GoStmt]("Call"),
|
||||||
|
IfStmt_Body: info[*ast.IfStmt]("Body"),
|
||||||
|
IfStmt_Cond: info[*ast.IfStmt]("Cond"),
|
||||||
|
IfStmt_Else: info[*ast.IfStmt]("Else"),
|
||||||
|
IfStmt_Init: info[*ast.IfStmt]("Init"),
|
||||||
|
ImportSpec_Comment: info[*ast.ImportSpec]("Comment"),
|
||||||
|
ImportSpec_Doc: info[*ast.ImportSpec]("Doc"),
|
||||||
|
ImportSpec_Name: info[*ast.ImportSpec]("Name"),
|
||||||
|
ImportSpec_Path: info[*ast.ImportSpec]("Path"),
|
||||||
|
IncDecStmt_X: info[*ast.IncDecStmt]("X"),
|
||||||
|
IndexExpr_Index: info[*ast.IndexExpr]("Index"),
|
||||||
|
IndexExpr_X: info[*ast.IndexExpr]("X"),
|
||||||
|
IndexListExpr_Indices: info[*ast.IndexListExpr]("Indices"),
|
||||||
|
IndexListExpr_X: info[*ast.IndexListExpr]("X"),
|
||||||
|
InterfaceType_Methods: info[*ast.InterfaceType]("Methods"),
|
||||||
|
KeyValueExpr_Key: info[*ast.KeyValueExpr]("Key"),
|
||||||
|
KeyValueExpr_Value: info[*ast.KeyValueExpr]("Value"),
|
||||||
|
LabeledStmt_Label: info[*ast.LabeledStmt]("Label"),
|
||||||
|
LabeledStmt_Stmt: info[*ast.LabeledStmt]("Stmt"),
|
||||||
|
MapType_Key: info[*ast.MapType]("Key"),
|
||||||
|
MapType_Value: info[*ast.MapType]("Value"),
|
||||||
|
ParenExpr_X: info[*ast.ParenExpr]("X"),
|
||||||
|
RangeStmt_Body: info[*ast.RangeStmt]("Body"),
|
||||||
|
RangeStmt_Key: info[*ast.RangeStmt]("Key"),
|
||||||
|
RangeStmt_Value: info[*ast.RangeStmt]("Value"),
|
||||||
|
RangeStmt_X: info[*ast.RangeStmt]("X"),
|
||||||
|
ReturnStmt_Results: info[*ast.ReturnStmt]("Results"),
|
||||||
|
SelectStmt_Body: info[*ast.SelectStmt]("Body"),
|
||||||
|
SelectorExpr_Sel: info[*ast.SelectorExpr]("Sel"),
|
||||||
|
SelectorExpr_X: info[*ast.SelectorExpr]("X"),
|
||||||
|
SendStmt_Chan: info[*ast.SendStmt]("Chan"),
|
||||||
|
SendStmt_Value: info[*ast.SendStmt]("Value"),
|
||||||
|
SliceExpr_High: info[*ast.SliceExpr]("High"),
|
||||||
|
SliceExpr_Low: info[*ast.SliceExpr]("Low"),
|
||||||
|
SliceExpr_Max: info[*ast.SliceExpr]("Max"),
|
||||||
|
SliceExpr_X: info[*ast.SliceExpr]("X"),
|
||||||
|
StarExpr_X: info[*ast.StarExpr]("X"),
|
||||||
|
StructType_Fields: info[*ast.StructType]("Fields"),
|
||||||
|
SwitchStmt_Body: info[*ast.SwitchStmt]("Body"),
|
||||||
|
SwitchStmt_Init: info[*ast.SwitchStmt]("Init"),
|
||||||
|
SwitchStmt_Tag: info[*ast.SwitchStmt]("Tag"),
|
||||||
|
TypeAssertExpr_Type: info[*ast.TypeAssertExpr]("Type"),
|
||||||
|
TypeAssertExpr_X: info[*ast.TypeAssertExpr]("X"),
|
||||||
|
TypeSpec_Comment: info[*ast.TypeSpec]("Comment"),
|
||||||
|
TypeSpec_Doc: info[*ast.TypeSpec]("Doc"),
|
||||||
|
TypeSpec_Name: info[*ast.TypeSpec]("Name"),
|
||||||
|
TypeSpec_Type: info[*ast.TypeSpec]("Type"),
|
||||||
|
TypeSpec_TypeParams: info[*ast.TypeSpec]("TypeParams"),
|
||||||
|
TypeSwitchStmt_Assign: info[*ast.TypeSwitchStmt]("Assign"),
|
||||||
|
TypeSwitchStmt_Body: info[*ast.TypeSwitchStmt]("Body"),
|
||||||
|
TypeSwitchStmt_Init: info[*ast.TypeSwitchStmt]("Init"),
|
||||||
|
UnaryExpr_X: info[*ast.UnaryExpr]("X"),
|
||||||
|
ValueSpec_Comment: info[*ast.ValueSpec]("Comment"),
|
||||||
|
ValueSpec_Doc: info[*ast.ValueSpec]("Doc"),
|
||||||
|
ValueSpec_Names: info[*ast.ValueSpec]("Names"),
|
||||||
|
ValueSpec_Type: info[*ast.ValueSpec]("Type"),
|
||||||
|
ValueSpec_Values: info[*ast.ValueSpec]("Values"),
|
||||||
|
}
|
7
e2e/vendor/modules.txt
vendored
7
e2e/vendor/modules.txt
vendored
@ -288,8 +288,8 @@ github.com/munnerz/goautoneg
|
|||||||
# github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
|
# github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f
|
||||||
## explicit
|
## explicit
|
||||||
github.com/mxk/go-flowrate/flowrate
|
github.com/mxk/go-flowrate/flowrate
|
||||||
# github.com/onsi/ginkgo/v2 v2.22.2
|
# github.com/onsi/ginkgo/v2 v2.23.0
|
||||||
## explicit; go 1.22.0
|
## explicit; go 1.23.0
|
||||||
github.com/onsi/ginkgo/v2
|
github.com/onsi/ginkgo/v2
|
||||||
github.com/onsi/ginkgo/v2/config
|
github.com/onsi/ginkgo/v2/config
|
||||||
github.com/onsi/ginkgo/v2/formatter
|
github.com/onsi/ginkgo/v2/formatter
|
||||||
@ -575,10 +575,11 @@ golang.org/x/text/unicode/norm
|
|||||||
# golang.org/x/time v0.8.0
|
# golang.org/x/time v0.8.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
golang.org/x/time/rate
|
golang.org/x/time/rate
|
||||||
# golang.org/x/tools v0.28.0
|
# golang.org/x/tools v0.30.0
|
||||||
## explicit; go 1.22.0
|
## explicit; go 1.22.0
|
||||||
golang.org/x/tools/cover
|
golang.org/x/tools/cover
|
||||||
golang.org/x/tools/go/ast/inspector
|
golang.org/x/tools/go/ast/inspector
|
||||||
|
golang.org/x/tools/internal/astutil/edge
|
||||||
# google.golang.org/genproto/googleapis/api v0.0.0-20241202173237-19429a94021a
|
# google.golang.org/genproto/googleapis/api v0.0.0-20241202173237-19429a94021a
|
||||||
## explicit; go 1.21
|
## explicit; go 1.21
|
||||||
google.golang.org/genproto/googleapis/api
|
google.golang.org/genproto/googleapis/api
|
||||||
|
Loading…
Reference in New Issue
Block a user