Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 234 for myname (0.18 sec)

  1. subprojects/diagnostics/src/test/groovy/org/gradle/api/reporting/model/ReportNodeTest.groovy

    import spock.lang.Specification
    
    class ReportNodeTest extends Specification {
    
        def "should create a report node with a child"() {
            setup:
            ReportNode reportNode = new ReportNode('myName')
            def child = new ReportNode('child')
            reportNode.append(child)
    
            expect:
            reportNode.children().size() == 1
        }
    
        def "should find the first matching child node"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 02 09:25:11 UTC 2015
    - 1.3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/validation/validation_test.go

    			if !hasError(errs, needle) {
    				t.Errorf("missing %q in\n%v", needle, errorsAsString(errs))
    			}
    		},
    	}, {
    		name: "duplicates",
    		conditions: []metav1.Condition{{
    			Type: "First",
    		}, {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 02 07:48:42 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  3. pkg/util/strcase/camelcase.go

    func CamelCaseWithSeparator(n string, sep string) string {
    	p := strings.Split(n, sep)
    	for i := 0; i < len(p); i++ {
    		p[i] = CamelCase(p[i])
    	}
    	return strings.Join(p, "")
    }
    
    // CamelCaseToKebabCase converts "MyName" to "my-name"
    func CamelCaseToKebabCase(s string) string {
    	switch s {
    	case "HTTPAPISpec":
    		return "http-api-spec"
    	case "HTTPRoute":
    		return "http-route"
    	case "HTTPAPISpecBinding":
    		return "http-api-spec-binding"
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Feb 28 19:48:10 UTC 2020
    - 2.7K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apimachinery/pkg/util/validation/validation.go

    		errs = append(errs, "name part "+EmptyError())
    	} else if len(name) > qualifiedNameMaxLength {
    		errs = append(errs, "name part "+MaxLenError(qualifiedNameMaxLength))
    	}
    	if !qualifiedNameRegexp.MatchString(name) {
    		errs = append(errs, "name part "+RegexError(qualifiedNameErrMsg, qualifiedNameFmt, "MyName", "my.name", "123-abc"))
    	}
    	return errs
    }
    
    // IsFullyQualifiedName checks if the name is fully qualified. This is similar
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 16:08:43 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/printers/tableprinter_test.go

    		expected string
    	}{
    		// Test a single row table "WithKind" option, prepends "pod" to name.
    		{
    			columns: []metav1.TableColumnDefinition{
    				{Name: "Name", Type: "string", Format: "name"},
    				{Name: "Ready", Type: "string"},
    				{Name: "Status", Type: "string"},
    				{Name: "Retries", Type: "integer"},
    				{Name: "Age", Type: "string"},
    			},
    			rows: []metav1.TableRow{
    				{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Oct 30 15:08:43 UTC 2022
    - 24.4K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top