Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for subfield (0.63 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    							otherField:
    								type: string
    			`),
    			oldObj: mustUnstructured(`
    				subField:
    					apiVersion: v2
    					kind: Baz
    				list:	
    				- name: entry1
    				  apiVersion: v2
    				  kind: Baz
    				- name: entry2
    				  apiVersion: v3
    				  kind: Bar
    			`),
    			newObj: mustUnstructured(`
    				subField:
    					apiVersion: v2
    					kind: Baz
    					otherField: newValue
    				list:	
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    		{setField(struct{ _, a, _ uintptr }{}, 0*unsafe.Sizeof(uintptr(0)), 1), true},
    		{setField(struct{ _, a, _ uintptr }{}, 1*unsafe.Sizeof(uintptr(0)), 1), false},
    		{setField(struct{ _, a, _ uintptr }{}, 2*unsafe.Sizeof(uintptr(0)), 1), true},
    		{struct{ _, a, _ func() }{}, true}, // incomparable struct with blank fields
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/reflect/value.go

    		return Value{}
    	}
    	m, ok := toRType(v.typ()).MethodByName(name)
    	if !ok {
    		return Value{}
    	}
    	return v.Method(m.Index)
    }
    
    // NumField returns the number of fields in the struct v.
    // It panics if v's Kind is not [Struct].
    func (v Value) NumField() int {
    	v.mustBe(Struct)
    	tt := (*structType)(unsafe.Pointer(v.typ()))
    	return len(tt.Fields)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:17:41 UTC 2024
    - 119.9K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/integTest/groovy/org/gradle/integtests/resolve/transform/ArtifactTransformIntegrationTest.groovy

            given:
            buildFile << """
                def a = file('a.jar')
                a.mkdirs()
                new File(a, "subdir").mkdirs()
                new File(a, "subfile.txt").text = "input file"
    
                dependencies {
                    compile files(a)
                }
    
                abstract class MyTransform implements TransformAction<TransformParameters.None> {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Nov 07 18:43:42 UTC 2023
    - 100.8K bytes
    - Viewed (0)
  5. pkg/api/pod/util_test.go

    		// ObjectMeta is generic and therefore should never have a field with a specific resource's name;
    		// it contains cycles so it's easiest to just skip it.
    		if name == "ObjectMeta" {
    			break
    		}
    		for i := 0; i < tp.NumField(); i++ {
    			field := tp.Field(i)
    			resourcePaths.Insert(sets.List[string](collectResourcePaths(t, resourcename, path.Child(field.Name), field.Name, field.Type))...)
    		}
    	case reflect.Interface:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 108.8K bytes
    - Viewed (0)
  6. src/net/http/transport_test.go

    		},
    		ReadBufferSize:  1,
    		WriteBufferSize: 1,
    	}
    	tr2 := tr.Clone()
    	rv := reflect.ValueOf(tr2).Elem()
    	rt := rv.Type()
    	for i := 0; i < rt.NumField(); i++ {
    		sf := rt.Field(i)
    		if !token.IsExported(sf.Name) {
    			continue
    		}
    		if rv.Field(i).IsZero() {
    			t.Errorf("cloned field t2.%s is zero", sf.Name)
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
Back to top