Merge pull request #597 from kubernetes-csi/dependabot/go_modules/github.com/onsi/gomega-1.31.1
chore(deps): bump github.com/onsi/gomega from 1.30.0 to 1.31.1
This commit is contained in:
commit
299fc63d2e
4
go.mod
4
go.mod
@ -6,8 +6,8 @@ require (
|
|||||||
github.com/container-storage-interface/spec v1.8.0
|
github.com/container-storage-interface/spec v1.8.0
|
||||||
github.com/golang/protobuf v1.5.3
|
github.com/golang/protobuf v1.5.3
|
||||||
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.14.0
|
github.com/onsi/ginkgo/v2 v2.15.0
|
||||||
github.com/onsi/gomega v1.30.0
|
github.com/onsi/gomega v1.31.1
|
||||||
github.com/pborman/uuid v1.2.1
|
github.com/pborman/uuid v1.2.1
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
golang.org/x/net v0.20.0
|
golang.org/x/net v0.20.0
|
||||||
|
|||||||
8
go.sum
8
go.sum
@ -293,12 +293,12 @@ 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.14.0 h1:vSmGj2Z5YPb9JwCWT6z6ihcUvDhuXLc3sJiqd3jMKAY=
|
github.com/onsi/ginkgo/v2 v2.15.0 h1:79HwNRBAZHOEwrczrgSOPy+eFTTlIGELKy5as+ClttY=
|
||||||
github.com/onsi/ginkgo/v2 v2.14.0/go.mod h1:JkUdW7JkN0V6rFvsHcJ478egV3XH9NxpD27Hal/PhZw=
|
github.com/onsi/ginkgo/v2 v2.15.0/go.mod h1:HlxMHtYF57y6Dpf+mc5529KKmSq9h2FpCF+/ZkwUxKM=
|
||||||
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.30.0 h1:hvMK7xYz4D3HapigLTeGdId/NcfQx1VHMJc60ew99+8=
|
github.com/onsi/gomega v1.31.1 h1:KYppCUK+bUgAZwHOu7EXVBKyQA6ILvOESHkn/tgoqvo=
|
||||||
github.com/onsi/gomega v1.30.0/go.mod h1:9sxs+SwGrKI0+PWe4Fxa9tFQQBG5xSsSbMXOI8PPpoQ=
|
github.com/onsi/gomega v1.31.1/go.mod h1:y40C95dwAD1Nz36SsEnxvfFe8FFfNxzI5eJ0EYGyAy0=
|
||||||
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
github.com/opencontainers/go-digest v1.0.0 h1:apOUWs51W5PlhuyGyz9FCeeBIOUDA/6nW8Oi/yOhh5U=
|
||||||
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
github.com/opencontainers/go-digest v1.0.0/go.mod h1:0JzlMkj0TRzQZfJkVvzbP0HBR3IKzErnv2BNG4W4MAM=
|
||||||
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
|
github.com/opencontainers/selinux v1.10.0 h1:rAiKF8hTcgLI3w0DHm6i0ylVVcOrlgR1kK99DRLDhyU=
|
||||||
|
|||||||
18
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
18
vendor/github.com/onsi/ginkgo/v2/CHANGELOG.md
generated
vendored
@ -1,3 +1,21 @@
|
|||||||
|
## 2.15.0
|
||||||
|
|
||||||
|
### Features
|
||||||
|
|
||||||
|
- JUnit reports now interpret Label(owner:X) and set owner to X. [8f3bd70]
|
||||||
|
- include cancellation reason when cancelling spec context [96e915c]
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
|
||||||
|
- emit output of failed go tool cover invocation so users can try to debug things for themselves [c245d09]
|
||||||
|
- fix outline when using nodot in ginkgo v2 [dca77c8]
|
||||||
|
- Document areas where GinkgoT() behaves differently from testing.T [dbaf18f]
|
||||||
|
- bugfix(docs): use Unsetenv instead of Clearenv (#1337) [6f67a14]
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
|
||||||
|
- Bump to go 1.20 [4fcd0b3]
|
||||||
|
|
||||||
## 2.14.0
|
## 2.14.0
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
4
vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go
generated
vendored
4
vendor/github.com/onsi/ginkgo/v2/ginkgo/internal/profiles_and_reports.go
generated
vendored
@ -144,7 +144,7 @@ func FinalizeProfilesAndReportsForSuites(suites TestSuites, cliConfig types.CLIC
|
|||||||
return messages, nil
|
return messages, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
//loads each profile, combines them, deletes them, stores them in destination
|
// loads each profile, combines them, deletes them, stores them in destination
|
||||||
func MergeAndCleanupCoverProfiles(profiles []string, destination string) error {
|
func MergeAndCleanupCoverProfiles(profiles []string, destination string) error {
|
||||||
combined := &bytes.Buffer{}
|
combined := &bytes.Buffer{}
|
||||||
modeRegex := regexp.MustCompile(`^mode: .*\n`)
|
modeRegex := regexp.MustCompile(`^mode: .*\n`)
|
||||||
@ -184,7 +184,7 @@ func GetCoverageFromCoverProfile(profile string) (float64, error) {
|
|||||||
cmd := exec.Command("go", "tool", "cover", "-func", profile)
|
cmd := exec.Command("go", "tool", "cover", "-func", profile)
|
||||||
output, err := cmd.CombinedOutput()
|
output, err := cmd.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, fmt.Errorf("Could not process Coverprofile %s: %s", profile, err.Error())
|
return 0, fmt.Errorf("Could not process Coverprofile %s: %s - %s", profile, err.Error(), string(output))
|
||||||
}
|
}
|
||||||
re := regexp.MustCompile(`total:\s*\(statements\)\s*(\d*\.\d*)\%`)
|
re := regexp.MustCompile(`total:\s*\(statements\)\s*(\d*\.\d*)\%`)
|
||||||
matches := re.FindStringSubmatch(string(output))
|
matches := re.FindStringSubmatch(string(output))
|
||||||
|
|||||||
3
vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/ginkgo.go
generated
vendored
3
vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/ginkgo.go
generated
vendored
@ -1,10 +1,11 @@
|
|||||||
package outline
|
package outline
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/onsi/ginkgo/v2/types"
|
|
||||||
"go/ast"
|
"go/ast"
|
||||||
"go/token"
|
"go/token"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
|
"github.com/onsi/ginkgo/v2/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
|||||||
9
vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/import.go
generated
vendored
9
vendor/github.com/onsi/ginkgo/v2/ginkgo/outline/import.go
generated
vendored
@ -28,14 +28,7 @@ func packageNameForImport(f *ast.File, path string) *string {
|
|||||||
}
|
}
|
||||||
name := spec.Name.String()
|
name := spec.Name.String()
|
||||||
if name == "<nil>" {
|
if name == "<nil>" {
|
||||||
// If the package name is not explicitly specified,
|
name = "ginkgo"
|
||||||
// make an educated guess. This is not guaranteed to be correct.
|
|
||||||
lastSlash := strings.LastIndex(path, "/")
|
|
||||||
if lastSlash == -1 {
|
|
||||||
name = path
|
|
||||||
} else {
|
|
||||||
name = path[lastSlash+1:]
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if name == "." {
|
if name == "." {
|
||||||
name = ""
|
name = ""
|
||||||
|
|||||||
5
vendor/github.com/onsi/ginkgo/v2/ginkgo_t_dsl.go
generated
vendored
5
vendor/github.com/onsi/ginkgo/v2/ginkgo_t_dsl.go
generated
vendored
@ -15,6 +15,11 @@ GinkgoT() is analogous to *testing.T and implements the majority of *testing.T's
|
|||||||
GinkgoT() takes an optional offset argument that can be used to get the
|
GinkgoT() takes an optional offset argument that can be used to get the
|
||||||
correct line number associated with the failure - though you do not need to use this if you call GinkgoHelper() or GinkgoT().Helper() appropriately
|
correct line number associated with the failure - though you do not need to use this if you call GinkgoHelper() or GinkgoT().Helper() appropriately
|
||||||
|
|
||||||
|
GinkgoT() attempts to mimic the behavior of `testing.T` with the exception of the following:
|
||||||
|
|
||||||
|
- Error/Errorf: failures in Ginkgo always immediately stop execution and there is no mechanism to log a failure without aborting the test. As such Error/Errorf are equivalent to Fatal/Fatalf.
|
||||||
|
- Parallel() is a no-op as Ginkgo's multi-process parallelism model is substantially different from go test's in-process model.
|
||||||
|
|
||||||
You can learn more here: https://onsi.github.io/ginkgo/#using-third-party-libraries
|
You can learn more here: https://onsi.github.io/ginkgo/#using-third-party-libraries
|
||||||
*/
|
*/
|
||||||
func GinkgoT(optionalOffset ...int) FullGinkgoTInterface {
|
func GinkgoT(optionalOffset ...int) FullGinkgoTInterface {
|
||||||
|
|||||||
4
vendor/github.com/onsi/ginkgo/v2/internal/spec_context.go
generated
vendored
4
vendor/github.com/onsi/ginkgo/v2/internal/spec_context.go
generated
vendored
@ -17,7 +17,7 @@ type specContext struct {
|
|||||||
context.Context
|
context.Context
|
||||||
*ProgressReporterManager
|
*ProgressReporterManager
|
||||||
|
|
||||||
cancel context.CancelFunc
|
cancel context.CancelCauseFunc
|
||||||
|
|
||||||
suite *Suite
|
suite *Suite
|
||||||
}
|
}
|
||||||
@ -30,7 +30,7 @@ Note that while SpecContext is used to enforce deadlines by Ginkgo it is not con
|
|||||||
This is because Ginkgo needs finer control over when the context is canceled. Specifically, Ginkgo needs to generate a ProgressReport before it cancels the context to ensure progress is captured where the spec is currently running. The only way to avoid a race here is to manually control the cancellation.
|
This is because Ginkgo needs finer control over when the context is canceled. Specifically, Ginkgo needs to generate a ProgressReport before it cancels the context to ensure progress is captured where the spec is currently running. The only way to avoid a race here is to manually control the cancellation.
|
||||||
*/
|
*/
|
||||||
func NewSpecContext(suite *Suite) *specContext {
|
func NewSpecContext(suite *Suite) *specContext {
|
||||||
ctx, cancel := context.WithCancel(context.Background())
|
ctx, cancel := context.WithCancelCause(context.Background())
|
||||||
sc := &specContext{
|
sc := &specContext{
|
||||||
cancel: cancel,
|
cancel: cancel,
|
||||||
suite: suite,
|
suite: suite,
|
||||||
|
|||||||
6
vendor/github.com/onsi/ginkgo/v2/internal/suite.go
generated
vendored
6
vendor/github.com/onsi/ginkgo/v2/internal/suite.go
generated
vendored
@ -858,7 +858,7 @@ func (suite *Suite) runNode(node Node, specDeadline time.Time, text string) (typ
|
|||||||
}
|
}
|
||||||
|
|
||||||
sc := NewSpecContext(suite)
|
sc := NewSpecContext(suite)
|
||||||
defer sc.cancel()
|
defer sc.cancel(fmt.Errorf("spec has finished"))
|
||||||
|
|
||||||
suite.selectiveLock.Lock()
|
suite.selectiveLock.Lock()
|
||||||
suite.currentSpecContext = sc
|
suite.currentSpecContext = sc
|
||||||
@ -958,7 +958,7 @@ func (suite *Suite) runNode(node Node, specDeadline time.Time, text string) (typ
|
|||||||
|
|
||||||
// tell the spec to stop. it's important we generate the progress report first to make sure we capture where
|
// tell the spec to stop. it's important we generate the progress report first to make sure we capture where
|
||||||
// the spec is actually stuck
|
// the spec is actually stuck
|
||||||
sc.cancel()
|
sc.cancel(fmt.Errorf("%s timeout occurred", timeoutInPlay))
|
||||||
//and now we wait for the grace period
|
//and now we wait for the grace period
|
||||||
gracePeriodChannel = time.After(gracePeriod)
|
gracePeriodChannel = time.After(gracePeriod)
|
||||||
case <-interruptStatus.Channel:
|
case <-interruptStatus.Channel:
|
||||||
@ -985,7 +985,7 @@ func (suite *Suite) runNode(node Node, specDeadline time.Time, text string) (typ
|
|||||||
}
|
}
|
||||||
|
|
||||||
progressReport = progressReport.WithoutOtherGoroutines()
|
progressReport = progressReport.WithoutOtherGoroutines()
|
||||||
sc.cancel()
|
sc.cancel(fmt.Errorf(interruptStatus.Message()))
|
||||||
|
|
||||||
if interruptStatus.Level == interrupt_handler.InterruptLevelBailOut {
|
if interruptStatus.Level == interrupt_handler.InterruptLevelBailOut {
|
||||||
if interruptStatus.ShouldIncludeProgressReport() {
|
if interruptStatus.ShouldIncludeProgressReport() {
|
||||||
|
|||||||
12
vendor/github.com/onsi/ginkgo/v2/reporters/junit_report.go
generated
vendored
12
vendor/github.com/onsi/ginkgo/v2/reporters/junit_report.go
generated
vendored
@ -15,6 +15,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"path"
|
"path"
|
||||||
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/onsi/ginkgo/v2/config"
|
"github.com/onsi/ginkgo/v2/config"
|
||||||
@ -104,6 +105,8 @@ type JUnitProperty struct {
|
|||||||
Value string `xml:"value,attr"`
|
Value string `xml:"value,attr"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var ownerRE = regexp.MustCompile(`(?i)^owner:(.*)$`)
|
||||||
|
|
||||||
type JUnitTestCase struct {
|
type JUnitTestCase struct {
|
||||||
// Name maps onto the full text of the spec - equivalent to "[SpecReport.LeafNodeType] SpecReport.FullText()"
|
// Name maps onto the full text of the spec - equivalent to "[SpecReport.LeafNodeType] SpecReport.FullText()"
|
||||||
Name string `xml:"name,attr"`
|
Name string `xml:"name,attr"`
|
||||||
@ -113,6 +116,8 @@ type JUnitTestCase struct {
|
|||||||
Status string `xml:"status,attr"`
|
Status string `xml:"status,attr"`
|
||||||
// Time is the time in seconds to execute the spec - maps onto SpecReport.RunTime
|
// Time is the time in seconds to execute the spec - maps onto SpecReport.RunTime
|
||||||
Time float64 `xml:"time,attr"`
|
Time float64 `xml:"time,attr"`
|
||||||
|
// Owner is the owner the spec - is set if a label matching Label("owner:X") is provided. The last matching label is used as the owner, thereby allowing specs to override owners specified in container nodes.
|
||||||
|
Owner string `xml:"owner,attr,omitempty"`
|
||||||
//Skipped is populated with a message if the test was skipped or pending
|
//Skipped is populated with a message if the test was skipped or pending
|
||||||
Skipped *JUnitSkipped `xml:"skipped,omitempty"`
|
Skipped *JUnitSkipped `xml:"skipped,omitempty"`
|
||||||
//Error is populated if the test panicked or was interrupted
|
//Error is populated if the test panicked or was interrupted
|
||||||
@ -195,6 +200,12 @@ func GenerateJUnitReportWithConfig(report types.Report, dst string, config Junit
|
|||||||
if len(labels) > 0 && !config.OmitSpecLabels {
|
if len(labels) > 0 && !config.OmitSpecLabels {
|
||||||
name = name + " [" + strings.Join(labels, ", ") + "]"
|
name = name + " [" + strings.Join(labels, ", ") + "]"
|
||||||
}
|
}
|
||||||
|
owner := ""
|
||||||
|
for _, label := range labels {
|
||||||
|
if matches := ownerRE.FindStringSubmatch(label); len(matches) == 2 {
|
||||||
|
owner = matches[1]
|
||||||
|
}
|
||||||
|
}
|
||||||
name = strings.TrimSpace(name)
|
name = strings.TrimSpace(name)
|
||||||
|
|
||||||
test := JUnitTestCase{
|
test := JUnitTestCase{
|
||||||
@ -202,6 +213,7 @@ func GenerateJUnitReportWithConfig(report types.Report, dst string, config Junit
|
|||||||
Classname: report.SuiteDescription,
|
Classname: report.SuiteDescription,
|
||||||
Status: spec.State.String(),
|
Status: spec.State.String(),
|
||||||
Time: spec.RunTime.Seconds(),
|
Time: spec.RunTime.Seconds(),
|
||||||
|
Owner: owner,
|
||||||
}
|
}
|
||||||
if !spec.State.Is(config.OmitTimelinesForSpecState) {
|
if !spec.State.Is(config.OmitTimelinesForSpecState) {
|
||||||
test.SystemErr = systemErrForUnstructuredReporters(spec)
|
test.SystemErr = systemErrForUnstructuredReporters(spec)
|
||||||
|
|||||||
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.14.0"
|
const VERSION = "2.15.0"
|
||||||
|
|||||||
25
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
25
vendor/github.com/onsi/gomega/CHANGELOG.md
generated
vendored
@ -1,3 +1,28 @@
|
|||||||
|
## 1.31.1
|
||||||
|
|
||||||
|
### Fixes
|
||||||
|
- Inverted arguments order of FailureMessage of BeComparableToMatcher [e0dd999]
|
||||||
|
- Update test in case keeping msg is desired [ad1a367]
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
- Show how to import the format sub package [24e958d]
|
||||||
|
- tidy up go.sum [26661b8]
|
||||||
|
- bump dependencies [bde8f7a]
|
||||||
|
|
||||||
|
## 1.31.0
|
||||||
|
|
||||||
|
### Features
|
||||||
|
- Async assertions include context cancellation cause if present [121c37f]
|
||||||
|
|
||||||
|
### Maintenance
|
||||||
|
- Bump minimum go version [dee1e3c]
|
||||||
|
- docs: fix typo in example usage "occured" -> "occurred" [49005fe]
|
||||||
|
- Bump actions/setup-go from 4 to 5 (#714) [f1c8757]
|
||||||
|
- Bump github/codeql-action from 2 to 3 (#715) [9836e76]
|
||||||
|
- Bump github.com/onsi/ginkgo/v2 from 2.13.0 to 2.13.2 (#713) [54726f0]
|
||||||
|
- Bump golang.org/x/net from 0.17.0 to 0.19.0 (#711) [df97ecc]
|
||||||
|
- docs: fix `HaveExactElement` typo (#712) [a672c86]
|
||||||
|
|
||||||
## 1.30.0
|
## 1.30.0
|
||||||
|
|
||||||
### Features
|
### Features
|
||||||
|
|||||||
2
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
2
vendor/github.com/onsi/gomega/gomega_dsl.go
generated
vendored
@ -22,7 +22,7 @@ import (
|
|||||||
"github.com/onsi/gomega/types"
|
"github.com/onsi/gomega/types"
|
||||||
)
|
)
|
||||||
|
|
||||||
const GOMEGA_VERSION = "1.30.0"
|
const GOMEGA_VERSION = "1.31.1"
|
||||||
|
|
||||||
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
const nilGomegaPanic = `You are trying to make an assertion, but haven't registered Gomega's fail handler.
|
||||||
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
If you're using Ginkgo then you probably forgot to put your assertion in an It().
|
||||||
|
|||||||
5
vendor/github.com/onsi/gomega/internal/async_assertion.go
generated
vendored
5
vendor/github.com/onsi/gomega/internal/async_assertion.go
generated
vendored
@ -553,7 +553,12 @@ func (assertion *AsyncAssertion) match(matcher types.GomegaMatcher, desiredMatch
|
|||||||
lock.Unlock()
|
lock.Unlock()
|
||||||
}
|
}
|
||||||
case <-contextDone:
|
case <-contextDone:
|
||||||
|
err := context.Cause(assertion.ctx)
|
||||||
|
if err != nil && err != context.Canceled {
|
||||||
|
fail(fmt.Sprintf("Context was cancelled (cause: %s)", err))
|
||||||
|
} else {
|
||||||
fail("Context was cancelled")
|
fail("Context was cancelled")
|
||||||
|
}
|
||||||
return false
|
return false
|
||||||
case <-timeout:
|
case <-timeout:
|
||||||
if assertion.asyncType == AsyncAssertionTypeEventually {
|
if assertion.asyncType == AsyncAssertionTypeEventually {
|
||||||
|
|||||||
2
vendor/github.com/onsi/gomega/matchers.go
generated
vendored
2
vendor/github.com/onsi/gomega/matchers.go
generated
vendored
@ -394,7 +394,7 @@ func ConsistOf(elements ...interface{}) types.GomegaMatcher {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// HaveExactElemets succeeds if actual contains elements that precisely match the elemets passed into the matcher. The ordering of the elements does matter.
|
// HaveExactElements succeeds if actual contains elements that precisely match the elemets passed into the matcher. The ordering of the elements does matter.
|
||||||
// By default HaveExactElements() uses Equal() to match the elements, however custom matchers can be passed in instead. Here are some examples:
|
// By default HaveExactElements() uses Equal() to match the elements, however custom matchers can be passed in instead. Here are some examples:
|
||||||
//
|
//
|
||||||
// Expect([]string{"Foo", "FooBar"}).Should(HaveExactElements("Foo", "FooBar"))
|
// Expect([]string{"Foo", "FooBar"}).Should(HaveExactElements("Foo", "FooBar"))
|
||||||
|
|||||||
4
vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go
generated
vendored
4
vendor/github.com/onsi/gomega/matchers/be_comparable_to_matcher.go
generated
vendored
@ -41,9 +41,9 @@ func (matcher *BeComparableToMatcher) Match(actual interface{}) (success bool, m
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (matcher *BeComparableToMatcher) FailureMessage(actual interface{}) (message string) {
|
func (matcher *BeComparableToMatcher) FailureMessage(actual interface{}) (message string) {
|
||||||
return cmp.Diff(matcher.Expected, actual, matcher.Options)
|
return fmt.Sprint("Expected object to be comparable, diff: ", cmp.Diff(actual, matcher.Expected, matcher.Options...))
|
||||||
}
|
}
|
||||||
|
|
||||||
func (matcher *BeComparableToMatcher) NegatedFailureMessage(actual interface{}) (message string) {
|
func (matcher *BeComparableToMatcher) NegatedFailureMessage(actual interface{}) (message string) {
|
||||||
return format.Message(actual, "not to equal", matcher.Expected)
|
return format.Message(actual, "not to be comparable to", matcher.Expected)
|
||||||
}
|
}
|
||||||
|
|||||||
8
vendor/modules.txt
vendored
8
vendor/modules.txt
vendored
@ -180,8 +180,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.14.0
|
# github.com/onsi/ginkgo/v2 v2.15.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.20
|
||||||
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
|
||||||
@ -202,8 +202,8 @@ github.com/onsi/ginkgo/v2/internal/parallel_support
|
|||||||
github.com/onsi/ginkgo/v2/internal/testingtproxy
|
github.com/onsi/ginkgo/v2/internal/testingtproxy
|
||||||
github.com/onsi/ginkgo/v2/reporters
|
github.com/onsi/ginkgo/v2/reporters
|
||||||
github.com/onsi/ginkgo/v2/types
|
github.com/onsi/ginkgo/v2/types
|
||||||
# github.com/onsi/gomega v1.30.0
|
# github.com/onsi/gomega v1.31.1
|
||||||
## explicit; go 1.18
|
## explicit; go 1.20
|
||||||
github.com/onsi/gomega
|
github.com/onsi/gomega
|
||||||
github.com/onsi/gomega/format
|
github.com/onsi/gomega/format
|
||||||
github.com/onsi/gomega/gcustom
|
github.com/onsi/gomega/gcustom
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user