mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2026-01-08 16:21:50 +00:00
bump gomega to 1.29.0
This commit is contained in:
4
vendor/github.com/google/go-cmp/cmp/cmpopts/xform.go
generated
vendored
4
vendor/github.com/google/go-cmp/cmp/cmpopts/xform.go
generated
vendored
@@ -19,7 +19,7 @@ func (xf xformFilter) filter(p cmp.Path) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// AcyclicTransformer returns a Transformer with a filter applied that ensures
|
||||
// AcyclicTransformer returns a [cmp.Transformer] with a filter applied that ensures
|
||||
// that the transformer cannot be recursively applied upon its own output.
|
||||
//
|
||||
// An example use case is a transformer that splits a string by lines:
|
||||
@@ -28,7 +28,7 @@ func (xf xformFilter) filter(p cmp.Path) bool {
|
||||
// return strings.Split(s, "\n")
|
||||
// })
|
||||
//
|
||||
// Had this been an unfiltered Transformer instead, this would result in an
|
||||
// Had this been an unfiltered [cmp.Transformer] instead, this would result in an
|
||||
// infinite cycle converting a string to []string to [][]string and so on.
|
||||
func AcyclicTransformer(name string, xformFunc interface{}) cmp.Option {
|
||||
xf := xformFilter{cmp.Transformer(name, xformFunc)}
|
||||
|
||||
Reference in New Issue
Block a user