go mod: update osbuild/images to v0.139.0
Includes: 0.139.0 RHEL 9 Azure kernel command line arguments (#1457) Author: Achilleas Koutsou, Reviewers: Ondřej Budai, Simon de Vlieger, Tomáš Hozza 0.138.0 Update dependencies 2025-04-24 (#1460) Author: SchutzBot, Reviewers: Achilleas Koutsou ci: add missing gh tool to gobump action (#1452) Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou, Simon de Vlieger ci: keep GITHUB_TOKEN in gobump action (#1458) Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou, Simon de Vlieger ci: remove unnecessary git config command (#1451) Author: Lukáš Zapletal, Reviewers: Achilleas Koutsou fedora: image type names follow variants (#1233) Author: Simon de Vlieger, Reviewers: Achilleas Koutsou many: propagate masked services (#1456) Author: Simon de Vlieger, Reviewers: Achilleas Koutsou, Ondřej Budai, Tomáš Hozza
This commit is contained in:
parent
7c0aecdd82
commit
31d1665f7e
15 changed files with 118 additions and 70 deletions
7
vendor/github.com/google/go-cmp/cmp/internal/function/func.go
generated
vendored
7
vendor/github.com/google/go-cmp/cmp/internal/function/func.go
generated
vendored
|
|
@ -19,6 +19,7 @@ const (
|
|||
|
||||
tbFunc // func(T) bool
|
||||
ttbFunc // func(T, T) bool
|
||||
ttiFunc // func(T, T) int
|
||||
trbFunc // func(T, R) bool
|
||||
tibFunc // func(T, I) bool
|
||||
trFunc // func(T) R
|
||||
|
|
@ -28,11 +29,13 @@ const (
|
|||
Transformer = trFunc // func(T) R
|
||||
ValueFilter = ttbFunc // func(T, T) bool
|
||||
Less = ttbFunc // func(T, T) bool
|
||||
Compare = ttiFunc // func(T, T) int
|
||||
ValuePredicate = tbFunc // func(T) bool
|
||||
KeyValuePredicate = trbFunc // func(T, R) bool
|
||||
)
|
||||
|
||||
var boolType = reflect.TypeOf(true)
|
||||
var intType = reflect.TypeOf(0)
|
||||
|
||||
// IsType reports whether the reflect.Type is of the specified function type.
|
||||
func IsType(t reflect.Type, ft funcType) bool {
|
||||
|
|
@ -49,6 +52,10 @@ func IsType(t reflect.Type, ft funcType) bool {
|
|||
if ni == 2 && no == 1 && t.In(0) == t.In(1) && t.Out(0) == boolType {
|
||||
return true
|
||||
}
|
||||
case ttiFunc: // func(T, T) int
|
||||
if ni == 2 && no == 1 && t.In(0) == t.In(1) && t.Out(0) == intType {
|
||||
return true
|
||||
}
|
||||
case trbFunc: // func(T, R) bool
|
||||
if ni == 2 && no == 1 && t.Out(0) == boolType {
|
||||
return true
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue