- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for FindFieldType (0.09 sec)
-
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/model/types_test.go
nestedFieldType, found := rt.FindFieldType("CustomObject", "nested") if !found { t.Fatal("got field not found for 'CustomObject.nested', wanted found") } if nestedFieldType.Type.GetMessageType() != "CustomObject.nested" { t.Errorf("got field type %v, wanted mock_template.nested", nestedFieldType.Type) } subnameFieldType, found := rt.FindFieldType("CustomObject.nested", "subname") 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) -
staging/src/k8s.io/apiserver/pkg/cel/types.go
// concessions were made to align with the existing CEL interfaces. func (rt *DeclTypeProvider) FindFieldType(typeName, fieldName string) (*ref.FieldType, bool) { st, found := rt.findDeclType(typeName) if !found { return rt.typeProvider.FindFieldType(typeName, fieldName) } f, found := st.Fields[fieldName] if found { ft := f.Type expT, err := ft.ExprType()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 08 15:52:31 UTC 2023 - 18K bytes - Viewed (0)