chore(deps): bump github.com/onsi/ginkgo/v2 from 2.20.2 to 2.21.0
Bumps [github.com/onsi/ginkgo/v2](https://github.com/onsi/ginkgo) from 2.20.2 to 2.21.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.20.2...v2.21.0) --- updated-dependencies: - dependency-name: github.com/onsi/ginkgo/v2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
39e9d745cd
commit
97b1e8d655
6
go.mod
6
go.mod
@ -5,7 +5,7 @@ go 1.23.1
|
|||||||
require (
|
require (
|
||||||
github.com/container-storage-interface/spec v1.8.0
|
github.com/container-storage-interface/spec v1.8.0
|
||||||
github.com/kubernetes-csi/csi-lib-utils v0.9.0
|
github.com/kubernetes-csi/csi-lib-utils v0.9.0
|
||||||
github.com/onsi/ginkgo/v2 v2.20.2
|
github.com/onsi/ginkgo/v2 v2.21.0
|
||||||
github.com/onsi/gomega v1.35.1
|
github.com/onsi/gomega v1.35.1
|
||||||
github.com/pborman/uuid v1.2.1
|
github.com/pborman/uuid v1.2.1
|
||||||
github.com/stretchr/testify v1.9.0
|
github.com/stretchr/testify v1.9.0
|
||||||
@ -53,7 +53,7 @@ require (
|
|||||||
github.com/google/gnostic-models v0.6.8 // indirect
|
github.com/google/gnostic-models v0.6.8 // indirect
|
||||||
github.com/google/go-cmp v0.6.0 // indirect
|
github.com/google/go-cmp v0.6.0 // indirect
|
||||||
github.com/google/gofuzz v1.2.0 // indirect
|
github.com/google/gofuzz v1.2.0 // indirect
|
||||||
github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 // indirect
|
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db // indirect
|
||||||
github.com/google/uuid v1.6.0 // indirect
|
github.com/google/uuid v1.6.0 // indirect
|
||||||
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
|
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0 // indirect
|
||||||
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
|
github.com/grpc-ecosystem/grpc-gateway/v2 v2.16.0 // indirect
|
||||||
@ -102,7 +102,7 @@ require (
|
|||||||
golang.org/x/term v0.25.0 // indirect
|
golang.org/x/term v0.25.0 // indirect
|
||||||
golang.org/x/text v0.19.0 // indirect
|
golang.org/x/text v0.19.0 // indirect
|
||||||
golang.org/x/time v0.3.0 // indirect
|
golang.org/x/time v0.3.0 // indirect
|
||||||
golang.org/x/tools v0.24.0 // indirect
|
golang.org/x/tools v0.26.0 // indirect
|
||||||
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
|
google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de // indirect
|
||||||
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
|
google.golang.org/genproto/googleapis/api v0.0.0-20240814211410-ddb44dafa142 // indirect
|
||||||
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
|
google.golang.org/genproto/googleapis/rpc v0.0.0-20240814211410-ddb44dafa142 // indirect
|
||||||
|
|||||||
12
go.sum
12
go.sum
@ -203,8 +203,8 @@ github.com/google/martian v2.1.0+incompatible/go.mod h1:9I4somxYTbIHy5NJKHRl3wXi
|
|||||||
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
github.com/google/pprof v0.0.0-20181206194817-3ea8567a2e57/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||||
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
github.com/google/pprof v0.0.0-20190515194954-54271f7e092f/go.mod h1:zfwlbNMJ+OItoe0UupaVj+oy1omPYYDuagoSzA8v9mc=
|
||||||
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
github.com/google/pprof v0.0.0-20191218002539-d4f498aebedc/go.mod h1:ZgVRPoUq/hfqzAqh7sHMqb3I9Rq5C59dIz2SbBwJ4eM=
|
||||||
github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5 h1:5iH8iuqE5apketRbSFBy+X1V0o+l+8NF1avt4HWl7cA=
|
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db h1:097atOisP2aRj7vFgYQBbFN4U4JNXUNYpxael3UzMyo=
|
||||||
github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144=
|
github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db/go.mod h1:vavhavw2zAxS5dIdcRluK6cSGGPlZynqzFM8NdvU144=
|
||||||
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
github.com/google/renameio v0.1.0/go.mod h1:KWCgfxg9yswjAJkECMjeO8J8rahYeXnNhOm40UhjYkI=
|
||||||
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.0.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
|
||||||
@ -288,8 +288,8 @@ github.com/mxk/go-flowrate v0.0.0-20140419014527-cca7078d478f/go.mod h1:ZdcZmHo+
|
|||||||
github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
github.com/onsi/ginkgo v0.0.0-20170829012221-11459a886d9c/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||||
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
github.com/onsi/ginkgo v1.6.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||||
github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
github.com/onsi/ginkgo v1.11.0/go.mod h1:lLunBs/Ym6LB5Z9jYTR76FiuTmxDTDusOGeTQH+WWjE=
|
||||||
github.com/onsi/ginkgo/v2 v2.20.2 h1:7NVCeyIWROIAheY21RLS+3j2bb52W0W82tkberYytp4=
|
github.com/onsi/ginkgo/v2 v2.21.0 h1:7rg/4f3rB88pb5obDgNZrNHrQ4e6WpjonchcpuBRnZM=
|
||||||
github.com/onsi/ginkgo/v2 v2.20.2/go.mod h1:K9gyxPIlb+aIvnZ8bd9Ak+YP18w3APlR+5coaZoE2ag=
|
github.com/onsi/ginkgo/v2 v2.21.0/go.mod h1:7Du3c42kxCUegi0IImZ1wUQzMBVecgIHjR1C+NkhLQo=
|
||||||
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
|
github.com/onsi/gomega v0.0.0-20170829124025-dcabb60a477c/go.mod h1:C1qb7wdrVGGVU+Z6iS04AVkA3Q65CEZX59MT0QO5uiA=
|
||||||
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
github.com/onsi/gomega v1.7.0/go.mod h1:ex+gbHU/CVuBBDIJjb2X0qEXbFg53c61hWP/1CpauHY=
|
||||||
github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4=
|
github.com/onsi/gomega v1.35.1 h1:Cwbd75ZBPxFSuZ6T+rN/WCb/gOc6YgFBXLlZLhC7Ds4=
|
||||||
@ -548,8 +548,8 @@ golang.org/x/tools v0.0.0-20191125144606-a911d9008d1f/go.mod h1:b+2E5dAYhXwXZwtn
|
|||||||
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
golang.org/x/tools v0.0.0-20191227053925-7b8e75db28f4/go.mod h1:TB2adYChydJhpapKDTa4BR/hXlZSLoq2Wpct/0txZ28=
|
||||||
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.24.0 h1:J1shsA93PJUEVaUSaay7UXAyE8aimq3GW0pjlolpa24=
|
golang.org/x/tools v0.26.0 h1:v/60pFQmzmT9ExmjDv2gGIfi3OqfKoEP6I5+umXlbnQ=
|
||||||
golang.org/x/tools v0.24.0/go.mod h1:YhNqVBIfWHdzvTLs0d8LCuMhkKUgSUKldakyV7W/WDQ=
|
golang.org/x/tools v0.26.0/go.mod h1:TPVVj70c7JJ3WCazhD8OdXcZg/og+b9+tH/KxylGwH0=
|
||||||
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=
|
||||||
|
|||||||
5
vendor/github.com/google/pprof/profile/encode.go
generated
vendored
5
vendor/github.com/google/pprof/profile/encode.go
generated
vendored
@ -122,6 +122,7 @@ func (p *Profile) preEncode() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
p.defaultSampleTypeX = addString(strings, p.DefaultSampleType)
|
p.defaultSampleTypeX = addString(strings, p.DefaultSampleType)
|
||||||
|
p.docURLX = addString(strings, p.DocURL)
|
||||||
|
|
||||||
p.stringTable = make([]string, len(strings))
|
p.stringTable = make([]string, len(strings))
|
||||||
for s, i := range strings {
|
for s, i := range strings {
|
||||||
@ -156,6 +157,7 @@ func (p *Profile) encode(b *buffer) {
|
|||||||
encodeInt64Opt(b, 12, p.Period)
|
encodeInt64Opt(b, 12, p.Period)
|
||||||
encodeInt64s(b, 13, p.commentX)
|
encodeInt64s(b, 13, p.commentX)
|
||||||
encodeInt64(b, 14, p.defaultSampleTypeX)
|
encodeInt64(b, 14, p.defaultSampleTypeX)
|
||||||
|
encodeInt64Opt(b, 15, p.docURLX)
|
||||||
}
|
}
|
||||||
|
|
||||||
var profileDecoder = []decoder{
|
var profileDecoder = []decoder{
|
||||||
@ -237,6 +239,8 @@ var profileDecoder = []decoder{
|
|||||||
func(b *buffer, m message) error { return decodeInt64s(b, &m.(*Profile).commentX) },
|
func(b *buffer, m message) error { return decodeInt64s(b, &m.(*Profile).commentX) },
|
||||||
// int64 defaultSampleType = 14
|
// int64 defaultSampleType = 14
|
||||||
func(b *buffer, m message) error { return decodeInt64(b, &m.(*Profile).defaultSampleTypeX) },
|
func(b *buffer, m message) error { return decodeInt64(b, &m.(*Profile).defaultSampleTypeX) },
|
||||||
|
// string doc_link = 15;
|
||||||
|
func(b *buffer, m message) error { return decodeInt64(b, &m.(*Profile).docURLX) },
|
||||||
}
|
}
|
||||||
|
|
||||||
// postDecode takes the unexported fields populated by decode (with
|
// postDecode takes the unexported fields populated by decode (with
|
||||||
@ -384,6 +388,7 @@ func (p *Profile) postDecode() error {
|
|||||||
|
|
||||||
p.commentX = nil
|
p.commentX = nil
|
||||||
p.DefaultSampleType, err = getString(p.stringTable, &p.defaultSampleTypeX, err)
|
p.DefaultSampleType, err = getString(p.stringTable, &p.defaultSampleTypeX, err)
|
||||||
|
p.DocURL, err = getString(p.stringTable, &p.docURLX, err)
|
||||||
p.stringTable = nil
|
p.stringTable = nil
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
5
vendor/github.com/google/pprof/profile/merge.go
generated
vendored
5
vendor/github.com/google/pprof/profile/merge.go
generated
vendored
@ -476,6 +476,7 @@ func combineHeaders(srcs []*Profile) (*Profile, error) {
|
|||||||
var timeNanos, durationNanos, period int64
|
var timeNanos, durationNanos, period int64
|
||||||
var comments []string
|
var comments []string
|
||||||
seenComments := map[string]bool{}
|
seenComments := map[string]bool{}
|
||||||
|
var docURL string
|
||||||
var defaultSampleType string
|
var defaultSampleType string
|
||||||
for _, s := range srcs {
|
for _, s := range srcs {
|
||||||
if timeNanos == 0 || s.TimeNanos < timeNanos {
|
if timeNanos == 0 || s.TimeNanos < timeNanos {
|
||||||
@ -494,6 +495,9 @@ func combineHeaders(srcs []*Profile) (*Profile, error) {
|
|||||||
if defaultSampleType == "" {
|
if defaultSampleType == "" {
|
||||||
defaultSampleType = s.DefaultSampleType
|
defaultSampleType = s.DefaultSampleType
|
||||||
}
|
}
|
||||||
|
if docURL == "" {
|
||||||
|
docURL = s.DocURL
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
p := &Profile{
|
p := &Profile{
|
||||||
@ -509,6 +513,7 @@ func combineHeaders(srcs []*Profile) (*Profile, error) {
|
|||||||
|
|
||||||
Comments: comments,
|
Comments: comments,
|
||||||
DefaultSampleType: defaultSampleType,
|
DefaultSampleType: defaultSampleType,
|
||||||
|
DocURL: docURL,
|
||||||
}
|
}
|
||||||
copy(p.SampleType, srcs[0].SampleType)
|
copy(p.SampleType, srcs[0].SampleType)
|
||||||
return p, nil
|
return p, nil
|
||||||
|
|||||||
7
vendor/github.com/google/pprof/profile/profile.go
generated
vendored
7
vendor/github.com/google/pprof/profile/profile.go
generated
vendored
@ -39,6 +39,7 @@ type Profile struct {
|
|||||||
Location []*Location
|
Location []*Location
|
||||||
Function []*Function
|
Function []*Function
|
||||||
Comments []string
|
Comments []string
|
||||||
|
DocURL string
|
||||||
|
|
||||||
DropFrames string
|
DropFrames string
|
||||||
KeepFrames string
|
KeepFrames string
|
||||||
@ -53,6 +54,7 @@ type Profile struct {
|
|||||||
encodeMu sync.Mutex
|
encodeMu sync.Mutex
|
||||||
|
|
||||||
commentX []int64
|
commentX []int64
|
||||||
|
docURLX int64
|
||||||
dropFramesX int64
|
dropFramesX int64
|
||||||
keepFramesX int64
|
keepFramesX int64
|
||||||
stringTable []string
|
stringTable []string
|
||||||
@ -555,6 +557,9 @@ func (p *Profile) String() string {
|
|||||||
for _, c := range p.Comments {
|
for _, c := range p.Comments {
|
||||||
ss = append(ss, "Comment: "+c)
|
ss = append(ss, "Comment: "+c)
|
||||||
}
|
}
|
||||||
|
if url := p.DocURL; url != "" {
|
||||||
|
ss = append(ss, fmt.Sprintf("Doc: %s", url))
|
||||||
|
}
|
||||||
if pt := p.PeriodType; pt != nil {
|
if pt := p.PeriodType; pt != nil {
|
||||||
ss = append(ss, fmt.Sprintf("PeriodType: %s %s", pt.Type, pt.Unit))
|
ss = append(ss, fmt.Sprintf("PeriodType: %s %s", pt.Type, pt.Unit))
|
||||||
}
|
}
|
||||||
@ -844,7 +849,7 @@ func (p *Profile) HasFileLines() bool {
|
|||||||
|
|
||||||
// Unsymbolizable returns true if a mapping points to a binary for which
|
// Unsymbolizable returns true if a mapping points to a binary for which
|
||||||
// locations can't be symbolized in principle, at least now. Examples are
|
// locations can't be symbolized in principle, at least now. Examples are
|
||||||
// "[vdso]", [vsyscall]" and some others, see the code.
|
// "[vdso]", "[vsyscall]" and some others, see the code.
|
||||||
func (m *Mapping) Unsymbolizable() bool {
|
func (m *Mapping) Unsymbolizable() bool {
|
||||||
name := filepath.Base(m.File)
|
name := filepath.Base(m.File)
|
||||||
return strings.HasPrefix(name, "[") || strings.HasPrefix(name, "linux-vdso") || strings.HasPrefix(m.File, "/dev/dri/") || m.File == "//anon"
|
return strings.HasPrefix(name, "[") || strings.HasPrefix(name, "linux-vdso") || strings.HasPrefix(m.File, "/dev/dri/") || m.File == "//anon"
|
||||||
|
|||||||
15
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
15
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
@ -1,3 +1,18 @@
|
|||||||
|
## 2.21.0
|
||||||
|
|
||||||
|
|
||||||
|
### Features
|
||||||
|
- add support for GINKGO_TIME_FORMAT [a69eb39]
|
||||||
|
- add GINKGO_NO_COLOR to disable colors via environment variables [bcab9c8]
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- increase threshold in timeline matcher [e548367]
|
||||||
|
- Fix the document by replacing `SpecsThatWillBeRun` with `SpecsThatWillRun`
|
||||||
|
[c2c4d3c]
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
- bump various dependencies [7e65a00]
|
||||||
|
|
||||||
## 2.20.2
|
## 2.20.2
|
||||||
|
|
||||||
Require Go 1.22+
|
Require Go 1.22+
|
||||||
|
|||||||
4
vendor/github.com/onsi/ginkgo/v2/formatter/formatter.go
generated
vendored
4
vendor/github.com/onsi/ginkgo/v2/formatter/formatter.go
generated
vendored
@ -82,6 +82,10 @@ func New(colorMode ColorMode) Formatter {
|
|||||||
return fmt.Sprintf("\x1b[38;5;%dm", colorCode)
|
return fmt.Sprintf("\x1b[38;5;%dm", colorCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if _, noColor := os.LookupEnv("GINKGO_NO_COLOR"); noColor {
|
||||||
|
colorMode = ColorModeNone
|
||||||
|
}
|
||||||
|
|
||||||
f := Formatter{
|
f := Formatter{
|
||||||
ColorMode: colorMode,
|
ColorMode: colorMode,
|
||||||
colors: map[string]string{
|
colors: map[string]string{
|
||||||
|
|||||||
2
vendor/github.com/onsi/ginkgo/v2/types/config.go
generated
vendored
2
vendor/github.com/onsi/ginkgo/v2/types/config.go
generated
vendored
@ -328,7 +328,7 @@ var ParallelConfigFlags = GinkgoFlags{
|
|||||||
// ReporterConfigFlags provides flags for the Ginkgo test process, and CLI
|
// ReporterConfigFlags provides flags for the Ginkgo test process, and CLI
|
||||||
var ReporterConfigFlags = GinkgoFlags{
|
var ReporterConfigFlags = GinkgoFlags{
|
||||||
{KeyPath: "R.NoColor", Name: "no-color", SectionKey: "output", DeprecatedName: "noColor", DeprecatedDocLink: "changed-command-line-flags",
|
{KeyPath: "R.NoColor", Name: "no-color", SectionKey: "output", DeprecatedName: "noColor", DeprecatedDocLink: "changed-command-line-flags",
|
||||||
Usage: "If set, suppress color output in default reporter."},
|
Usage: "If set, suppress color output in default reporter. You can also set the environment variable GINKGO_NO_COLOR=TRUE"},
|
||||||
{KeyPath: "R.Verbose", Name: "v", SectionKey: "output",
|
{KeyPath: "R.Verbose", Name: "v", SectionKey: "output",
|
||||||
Usage: "If set, emits more output including GinkgoWriter contents."},
|
Usage: "If set, emits more output including GinkgoWriter contents."},
|
||||||
{KeyPath: "R.VeryVerbose", Name: "vv", SectionKey: "output",
|
{KeyPath: "R.VeryVerbose", Name: "vv", SectionKey: "output",
|
||||||
|
|||||||
10
vendor/github.com/onsi/ginkgo/v2/types/types.go
generated
vendored
10
vendor/github.com/onsi/ginkgo/v2/types/types.go
generated
vendored
@ -3,13 +3,21 @@ package types
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"os"
|
||||||
"sort"
|
"sort"
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
const GINKGO_FOCUS_EXIT_CODE = 197
|
const GINKGO_FOCUS_EXIT_CODE = 197
|
||||||
const GINKGO_TIME_FORMAT = "01/02/06 15:04:05.999"
|
|
||||||
|
var GINKGO_TIME_FORMAT = "01/02/06 15:04:05.999"
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
if os.Getenv("GINKGO_TIME_FORMAT") != "" {
|
||||||
|
GINKGO_TIME_FORMAT = os.Getenv("GINKGO_TIME_FORMAT")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Report captures information about a Ginkgo test run
|
// Report captures information about a Ginkgo test run
|
||||||
type Report struct {
|
type Report struct {
|
||||||
|
|||||||
2
vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
2
vendor/github.com/onsi/ginkgo/v2/types/version.go
generated
vendored
@ -1,3 +1,3 @@
|
|||||||
package types
|
package types
|
||||||
|
|
||||||
const VERSION = "2.20.2"
|
const VERSION = "2.21.0"
|
||||||
|
|||||||
9
vendor/golang.org/x/tools/go/ast/inspector/inspector.go
generated
vendored
9
vendor/golang.org/x/tools/go/ast/inspector/inspector.go
generated
vendored
@ -73,6 +73,15 @@ func (in *Inspector) Preorder(types []ast.Node, f func(ast.Node)) {
|
|||||||
// check, Preorder is almost twice as fast as Nodes. The two
|
// check, Preorder is almost twice as fast as Nodes. The two
|
||||||
// features seem to contribute similar slowdowns (~1.4x each).
|
// features seem to contribute similar slowdowns (~1.4x each).
|
||||||
|
|
||||||
|
// This function is equivalent to the PreorderSeq call below,
|
||||||
|
// but to avoid the additional dynamic call (which adds 13-35%
|
||||||
|
// to the benchmarks), we expand it out.
|
||||||
|
//
|
||||||
|
// in.PreorderSeq(types...)(func(n ast.Node) bool {
|
||||||
|
// f(n)
|
||||||
|
// return true
|
||||||
|
// })
|
||||||
|
|
||||||
mask := maskOf(types)
|
mask := maskOf(types)
|
||||||
for i := 0; i < len(in.events); {
|
for i := 0; i < len(in.events); {
|
||||||
ev := in.events[i]
|
ev := in.events[i]
|
||||||
|
|||||||
85
vendor/golang.org/x/tools/go/ast/inspector/iter.go
generated
vendored
Normal file
85
vendor/golang.org/x/tools/go/ast/inspector/iter.go
generated
vendored
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
// Copyright 2024 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.
|
||||||
|
|
||||||
|
//go:build go1.23
|
||||||
|
|
||||||
|
package inspector
|
||||||
|
|
||||||
|
import (
|
||||||
|
"go/ast"
|
||||||
|
"iter"
|
||||||
|
)
|
||||||
|
|
||||||
|
// PreorderSeq returns an iterator that visits all the
|
||||||
|
// nodes of the files supplied to New in depth-first order.
|
||||||
|
// It visits each node n before n's children.
|
||||||
|
// The complete traversal sequence is determined by ast.Inspect.
|
||||||
|
//
|
||||||
|
// The types argument, if non-empty, enables type-based
|
||||||
|
// filtering of events: only nodes whose type matches an
|
||||||
|
// element of the types slice are included in the sequence.
|
||||||
|
func (in *Inspector) PreorderSeq(types ...ast.Node) iter.Seq[ast.Node] {
|
||||||
|
|
||||||
|
// This implementation is identical to Preorder,
|
||||||
|
// except that it supports breaking out of the loop.
|
||||||
|
|
||||||
|
return func(yield func(ast.Node) bool) {
|
||||||
|
mask := maskOf(types)
|
||||||
|
for i := 0; i < len(in.events); {
|
||||||
|
ev := in.events[i]
|
||||||
|
if ev.index > i {
|
||||||
|
// push
|
||||||
|
if ev.typ&mask != 0 {
|
||||||
|
if !yield(ev.node) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pop := ev.index
|
||||||
|
if in.events[pop].typ&mask == 0 {
|
||||||
|
// Subtrees do not contain types: skip them and pop.
|
||||||
|
i = pop + 1
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// All[N] returns an iterator over all the nodes of type N.
|
||||||
|
// N must be a pointer-to-struct type that implements ast.Node.
|
||||||
|
//
|
||||||
|
// Example:
|
||||||
|
//
|
||||||
|
// for call := range All[*ast.CallExpr](in) { ... }
|
||||||
|
func All[N interface {
|
||||||
|
*S
|
||||||
|
ast.Node
|
||||||
|
}, S any](in *Inspector) iter.Seq[N] {
|
||||||
|
|
||||||
|
// To avoid additional dynamic call overheads,
|
||||||
|
// we duplicate rather than call the logic of PreorderSeq.
|
||||||
|
|
||||||
|
mask := typeOf((N)(nil))
|
||||||
|
return func(yield func(N) bool) {
|
||||||
|
for i := 0; i < len(in.events); {
|
||||||
|
ev := in.events[i]
|
||||||
|
if ev.index > i {
|
||||||
|
// push
|
||||||
|
if ev.typ&mask != 0 {
|
||||||
|
if !yield(ev.node.(N)) {
|
||||||
|
break
|
||||||
|
}
|
||||||
|
}
|
||||||
|
pop := ev.index
|
||||||
|
if in.events[pop].typ&mask == 0 {
|
||||||
|
// Subtrees do not contain types: skip them and pop.
|
||||||
|
i = pop + 1
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
}
|
||||||
|
i++
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
10
vendor/modules.txt
vendored
10
vendor/modules.txt
vendored
@ -126,7 +126,7 @@ github.com/google/go-cmp/cmp/internal/value
|
|||||||
## explicit; go 1.12
|
## explicit; go 1.12
|
||||||
github.com/google/gofuzz
|
github.com/google/gofuzz
|
||||||
github.com/google/gofuzz/bytesource
|
github.com/google/gofuzz/bytesource
|
||||||
# github.com/google/pprof v0.0.0-20240827171923-fa2c70bbbfe5
|
# github.com/google/pprof v0.0.0-20241029153458-d1b30febd7db
|
||||||
## explicit; go 1.22
|
## explicit; go 1.22
|
||||||
github.com/google/pprof/profile
|
github.com/google/pprof/profile
|
||||||
# github.com/google/uuid v1.6.0
|
# github.com/google/uuid v1.6.0
|
||||||
@ -179,8 +179,8 @@ github.com/modern-go/reflect2
|
|||||||
# github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
# github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822
|
||||||
## explicit
|
## explicit
|
||||||
github.com/munnerz/goautoneg
|
github.com/munnerz/goautoneg
|
||||||
# github.com/onsi/ginkgo/v2 v2.20.2
|
# github.com/onsi/ginkgo/v2 v2.21.0
|
||||||
## explicit; go 1.22
|
## explicit; go 1.22.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
|
||||||
@ -443,8 +443,8 @@ golang.org/x/text/width
|
|||||||
# golang.org/x/time v0.3.0
|
# golang.org/x/time v0.3.0
|
||||||
## explicit
|
## explicit
|
||||||
golang.org/x/time/rate
|
golang.org/x/time/rate
|
||||||
# golang.org/x/tools v0.24.0
|
# golang.org/x/tools v0.26.0
|
||||||
## explicit; go 1.19
|
## 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
|
||||||
# google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de
|
# google.golang.org/genproto v0.0.0-20240227224415-6ceb2ff114de
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user