- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for GetMapType (0.1 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/types_test.go
if mp.ElemType.TypeName() != "int" { t.Errorf("got %s, wanted elem type of int", mp.ElemType.TypeName()) } expT, err := mp.ExprType() if err != nil { t.Errorf("fail to get cel type: %s", err) } if expT.GetMapType() == nil { t.Errorf("got %v, wanted CEL map type", expT) } } func testValue(t *testing.T, id int64, val interface{}) *DynValue { t.Helper() dv, err := NewDynValue(id, val) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 10 22:05:55 UTC 2022 - 2.1K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go
} flagsFieldType, found := rt.FindFieldType("CustomObject.nested", "flags") if !found { t.Fatal("got field not found for 'CustomObject.nested.flags', wanted found") } if flagsFieldType.Type.GetMapType() == nil { t.Errorf("got field type %v, wanted map", flagsFieldType.Type) } flagFieldType, found := rt.FindFieldType("CustomObject.nested.flags", "my_flag") if !found {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 3.8K bytes - Viewed (0)