dependencies: ginkgo v2.13.0, gomega v1.28.0
Besides simply staying up-to-date, ginkgo v2.13.0 adds a `PreviewSpecs` which will be used for introspection of the E2E test suites.
This commit is contained in:
4
vendor/github.com/onsi/gomega/gcustom/make_matcher.go
generated
vendored
4
vendor/github.com/onsi/gomega/gcustom/make_matcher.go
generated
vendored
@@ -97,7 +97,9 @@ func MakeMatcher(matchFunc any, args ...any) CustomGomegaMatcher {
|
||||
finalMatchFunc = reflect.MakeFunc(reflect.TypeOf(finalMatchFunc),
|
||||
func(args []reflect.Value) []reflect.Value {
|
||||
actual := args[0].Interface()
|
||||
if reflect.TypeOf(actual).AssignableTo(t.In(0)) {
|
||||
if actual == nil && reflect.TypeOf(actual) == reflect.TypeOf(nil) {
|
||||
return matchFuncValue.Call([]reflect.Value{reflect.New(t.In(0)).Elem()})
|
||||
} else if reflect.TypeOf(actual).AssignableTo(t.In(0)) {
|
||||
return matchFuncValue.Call([]reflect.Value{reflect.ValueOf(actual)})
|
||||
} else {
|
||||
return []reflect.Value{
|
||||
|
||||
Reference in New Issue
Block a user