Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 181 for nfield (0.27 sec)

  1. src/encoding/xml/marshal_test.go

    			`<FieldC>A.C.C</FieldC>` +
    			`<EmbedB>` +
    			`<FieldB>A.B.B</FieldB>` +
    			`<FieldA>` +
    			`<A1>A.B.C.A1</A1>` +
    			`<A2>A.B.C.A2</A2>` +
    			`</FieldA>` +
    			`<FieldC>A.B.C.C</FieldC>` +
    			`</EmbedB>` +
    			`<FieldA>A.A</FieldA>` +
    			`<FieldE>A.D.E</FieldE>` +
    			`</EmbedA>`,
    	},
    
    	// Anonymous struct pointer field which is nil
    	{
    		Value:     &EmbedB{},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Mar 08 18:46:41 UTC 2024
    - 66K bytes
    - Viewed (0)
  2. tests/migrate_test.go

    	}
    	typ := reflect.Indirect(reflect.ValueOf(&UserMigrateColumn2{})).Type()
    	numField := typ.NumField()
    	if numField != len(columnTypes) {
    		t.Fatalf("column's number not match struct and ddl, %d != %d", numField, len(columnTypes))
    	}
    	namer := schema.NamingStrategy{}
    	for i := 0; i < numField; i++ {
    		expectName := namer.ColumnName("", typ.Field(i).Name)
    		if columnTypes[i].Name() != expectName {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Mar 18 11:24:16 UTC 2024
    - 56.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/validation/validation.go

    	if value == "" {
    		if required {
    			return field.ErrorList{field.Required(fldPath, "")}
    		}
    		return field.ErrorList{}
    	}
    	for _, a := range accepted {
    		if a == value {
    			return field.ErrorList{}
    		}
    	}
    	return field.ErrorList{field.NotSupported(fldPath, value, accepted)}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 82.6K bytes
    - Viewed (0)
  4. pkg/apis/admissionregistration/validation/validation.go

    	var allErrors field.ErrorList
    	if len(resources) == 0 {
    		allErrors = append(allErrors, field.Required(fldPath, ""))
    	}
    	for i, resource := range resources {
    		if resource == "" {
    			allErrors = append(allErrors, field.Required(fldPath.Index(i), ""))
    		}
    		if strings.Contains(resource, "/") {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 10 22:07:40 UTC 2024
    - 56.6K bytes
    - Viewed (0)
  5. pkg/apis/batch/validation/validation.go

    		}
    	}
    	if !isOrdered {
    		allErrs = append(allErrs, field.Invalid(valuesPath, onExitCode.Values, "must be ordered"))
    	}
    
    	return allErrs
    }
    
    func validateSuccessPolicy(spec *batch.JobSpec, fldPath *field.Path) field.ErrorList {
    	var allErrs field.ErrorList
    	rulesPath := fldPath.Child("rules")
    	if len(spec.SuccessPolicy.Rules) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 16:43:24 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    					"change field to an invalid string",
    					myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{
    						"field": "asd",
    					}}},
    				applyPatchOperation{
    					"change field to a valid byte string",
    					myCRDV1Beta1, myCRDInstanceName, map[string]interface{}{
    						"field": "dGhpcyBpcyBwYXNzd29yZA==",
    					}},
    				patchMyCRDV1Beta1Schema{
    					"change `field`'s format to date-time",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  7. pkg/apis/flowcontrol/validation/validation_test.go

    		expectedErrors: field.ErrorList{
    			field.Invalid(field.NewPath("spec").Child("type"), flowcontrol.PriorityLevelEnablementLimited, "type must be 'Exempt' if and only if name is 'exempt'"),
    			field.Forbidden(field.NewPath("spec").Child("exempt"), "must be nil if the type is Limited"),
    			field.Invalid(field.NewPath("spec"), exemptTypeRepurposed.Spec, "spec of 'exempt' except the 'spec.exempt' field must equal the fixed value"),
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 22:22:51 UTC 2023
    - 54.7K bytes
    - Viewed (0)
  8. pkg/apis/networking/validation/validation_test.go

    		ingressClass *networking.IngressClass
    		expectedErrs field.ErrorList
    	}{
    		"valid name, valid controller": {
    			ingressClass: makeValidIngressClass("test123", "foo.co/bar"),
    			expectedErrs: field.ErrorList{},
    		},
    		"invalid name, valid controller": {
    			ingressClass: makeValidIngressClass("test*123", "foo.co/bar"),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 31 21:05:06 UTC 2023
    - 73.3K bytes
    - Viewed (0)
  9. okhttp/api/okhttp.api

    	public static final field TLS_KRB5_WITH_RC4_128_SHA Lokhttp3/CipherSuite;
    	public static final field TLS_PSK_WITH_3DES_EDE_CBC_SHA Lokhttp3/CipherSuite;
    	public static final field TLS_PSK_WITH_AES_128_CBC_SHA Lokhttp3/CipherSuite;
    	public static final field TLS_PSK_WITH_AES_256_CBC_SHA Lokhttp3/CipherSuite;
    	public static final field TLS_PSK_WITH_RC4_128_SHA Lokhttp3/CipherSuite;
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:41:01 UTC 2024
    - 70.2K bytes
    - Viewed (0)
  10. pkg/apis/certificates/validation/validation_test.go

    				SignerName:  "k8s.io/bar",
    				TrustBundle: goodCert1Block,
    			},
    		},
    		wantErrors: field.ErrorList{
    			field.Invalid(field.NewPath("metadata", "name"), "k8s.io:foo:bar", "ClusterTrustBundle for signerName k8s.io/bar must be named with prefix k8s.io:bar:"),
    			field.Invalid(field.NewPath("spec", "signerName"), "k8s.io/bar", "field is immutable"),
    		},
    	}, {
    		description: "adding certificate allowed",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 03 18:40:49 UTC 2023
    - 61K bytes
    - Viewed (0)
Back to top