Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 199 for myname (0.09 sec)

  1. testing/internal-integ-testing/src/test/groovy/org/gradle/integtests/fixtures/extensions/MultiTestLifecycleSpec.groovy

        }
    
        static class SampleRule extends ExternalResource {
            private final String name
    
            // We add a constructor parameter here, so this class can't be instantiated by the default constructor.
            // This way we can test if the class has been initialized correctly by Spock.
            SampleRule(String name) {
                this.name = name
            }
    
            @Override
            protected void before() throws Throwable {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/properties_providers.adoc

    [source,groovy]
    ----
    import org.gradle.api.Named
    
    interface MyType : Named {
        // Other properties and methods...
    }
    
    class MyTypeImpl(override val name: String) : MyType {
        // Implement other properties and methods...
    }
    
    // Usage
    val instance = MyTypeImpl("myName")
    println(instance.name) // Prints: myName
    ----
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  3. pkg/apis/storagemigration/validation/validation.go

    	var conditionReasonRegexp = regexp.MustCompile("^" + conditionReasonFmt + "$")
    
    	if !conditionReasonRegexp.MatchString(value) {
    		return []string{validation.RegexError(conditionReasonErrMsg, conditionReasonFmt, "my_name", "MY_NAME", "MyName", "ReasonA,ReasonB", "ReasonA:ReasonB")}
    	}
    	return nil
    }
    
    func checkAndAppendError(allErrs field.ErrorList, fieldPath *field.Path, value string, message string) field.ErrorList {
    	if len(value) == 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 04:18:56 UTC 2024
    - 9.5K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiserver/pkg/cel/library/format_test.go

    			name:        "qualifiedName",
    			expr:        `format.qualifiedName().validate("contains a space")`,
    			expectValue: types.OptionalOf(types.NewStringList(types.DefaultTypeAdapter, []string{`name part must consist of alphanumeric characters, '-', '_' or '.', and must start and end with an alphanumeric character (e.g. 'MyName',  or 'my.name',  or '123-abc', regex used for validation is '([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9]')`})),
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  5. pkg/apis/resource/validation/validation_resourceslice_test.go

    				return slice
    			}(),
    		},
    	}
    
    	for name, scenario := range scenarios {
    		t.Run(name, func(t *testing.T) {
    			errs := ValidateResourceSlice(scenario.slice)
    			assert.Equal(t, scenario.wantFailures, errs)
    		})
    	}
    }
    
    func TestValidateResourceSliceUpdate(t *testing.T) {
    	name := "valid"
    	validResourceSlice := testResourceSlice(name, name, name)
    
    	scenarios := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  6. src/encoding/json/encode.go

    //
    //	// Field appears in JSON as key "myName".
    //	Field int `json:"myName"`
    //
    //	// Field appears in JSON as key "myName" and
    //	// the field is omitted from the object if its value is empty,
    //	// as defined above.
    //	Field int `json:"myName,omitempty"`
    //
    //	// Field appears in JSON as key "Field" (the default), but
    //	// the field is skipped if empty.
    //	// Note the leading comma.
    //	Field int `json:",omitempty"`
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:18:55 UTC 2024
    - 36.2K bytes
    - Viewed (0)
  7. pkg/apis/resource/validation/validation_resourceclaimparameters_test.go

    			}(),
    		},
    	}
    
    	for name, scenario := range scenarios {
    		t.Run(name, func(t *testing.T) {
    			errs := ValidateResourceClaimParameters(scenario.parameters)
    			assert.Equal(t, scenario.wantFailures, errs)
    		})
    	}
    }
    
    func TestValidateResourceClaimParametersUpdate(t *testing.T) {
    	name := "valid"
    	validResourceClaimParameters := testResourceClaimParameters(name, name, nil)
    
    	scenarios := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  8. pkg/apis/resource/validation/validation_resourceclassparameters_test.go

    			}(),
    		},
    	}
    
    	for name, scenario := range scenarios {
    		t.Run(name, func(t *testing.T) {
    			errs := ValidateResourceClassParameters(scenario.parameters)
    			assert.Equal(t, scenario.wantFailures, errs)
    		})
    	}
    }
    
    func TestValidateResourceClassParametersUpdate(t *testing.T) {
    	name := "valid"
    	validResourceClassParameters := testResourceClassParameters(name, name, nil)
    
    	scenarios := map[string]struct {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 21:21:16 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation.go

    func isValidConditionReason(value string) []string {
    	if !conditionReasonRegexp.MatchString(value) {
    		return []string{validation.RegexError(conditionReasonErrMsg, conditionReasonFmt, "my_name", "MY_NAME", "MyName", "ReasonA,ReasonB", "ReasonA:ReasonB")}
    	}
    	return nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 08 01:52:02 UTC 2022
    - 13.5K bytes
    - Viewed (0)
  10. pkg/apis/resource/validation/validation_podschedulingcontext_test.go

    		},
    		"missing-name": {
    			wantFailures:  field.ErrorList{field.Required(field.NewPath("metadata", "name"), "name or generateName is required")},
    			schedulingCtx: testPodSchedulingContexts("", goodNS, goodPodSchedulingSpec),
    		},
    		"bad-name": {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 09:18:08 UTC 2023
    - 13.3K bytes
    - Viewed (0)
Back to top