Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,910 for nvalid (0.1 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy_test.go

    			isValid: true,
    		},
    	}
    
    	for _, tc := range tcs {
    		errs := strategy.ValidateUpdate(ctx, tc.obj, tc.old)
    		if tc.isValid && len(errs) > 0 {
    			t.Errorf("%v: unexpected error: %v", tc.name, errs)
    		}
    		if !tc.isValid && len(errs) == 0 {
    			t.Errorf("%v: unexpected non-error", tc.name)
    		}
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 22:16:10 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  2. subprojects/core/src/test/resources/org/gradle/api/internal/catalog/parser/invalid1.toml

    Louis Jacomet <******@****.***> 1615370565 +0100
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 16 14:58:26 UTC 2021
    - 27 bytes
    - Viewed (0)
  3. src/go/types/errors.go

    		msg := err.desc[0].msg
    		if strings.Index(msg, "invalid operand") > 0 || strings.Index(msg, "invalid type") > 0 {
    			return
    		}
    	}
    
    	if check.conf._Trace {
    		check.trace(err.posn().Pos(), "ERROR: %s (code = %d)", err.desc[0].msg, err.code)
    	}
    
    	// In go/types, if there is a sub-error with a valid position,
    	// call the typechecker error handler for each sub-error.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 22:06:18 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  4. src/unicode/utf8/example_test.go

    	// false
    }
    
    func ExampleValid() {
    	valid := []byte("Hello, 世界")
    	invalid := []byte{0xff, 0xfe, 0xfd}
    
    	fmt.Println(utf8.Valid(valid))
    	fmt.Println(utf8.Valid(invalid))
    	// Output:
    	// true
    	// false
    }
    
    func ExampleValidRune() {
    	valid := 'a'
    	invalid := rune(0xfffffff)
    
    	fmt.Println(utf8.ValidRune(valid))
    	fmt.Println(utf8.ValidRune(invalid))
    	// Output:
    	// true
    	// false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 05 21:29:18 UTC 2021
    - 3.6K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiextensions-apiserver/test/integration/listtype_test.go

    	}
    
    	t.Logf("Checking that valid fields DO NOT show in error")
    	for _, valid := range validListTypeFields {
    		if strings.Contains(createErr.Error(), valid) {
    			t.Errorf("unexpected error about %q: %v", valid, err)
    		}
    	}
    
    	t.Logf("Checking that invalid fields DO show in error")
    	for _, invalid := range invalidListTypeFields {
    		if !strings.Contains(createErr.Error(), invalid) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 03 06:51:04 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  6. cmd/kubeadm/app/cmd/upgrade/diff_test.go

    		},
    		{
    			name:          "invalid: missing config file",
    			cfgPath:       "missing-path-to-a-config",
    			expectedError: true,
    		},
    		{
    			name:            "invalid: valid config but empty manifest path",
    			cfgPath:         testUpgradeDiffConfig,
    			setManifestPath: true,
    			manifestPath:    "",
    			expectedError:   true,
    		},
    		{
    			name:            "invalid: valid config but bad manifest path",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 13 04:08:57 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  7. internal/auth/credentials_test.go

    func TestCreateCredentials(t *testing.T) {
    	testCases := []struct {
    		accessKey   string
    		secretKey   string
    		valid       bool
    		expectedErr error
    	}{
    		// Valid access and secret keys with minimum length.
    		{alphaNumericTable[:accessKeyMinLen], alphaNumericTable[:secretKeyMinLen], true, nil},
    		// Valid access and/or secret keys are longer than minimum length.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Mar 01 21:09:42 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  8. istioctl/pkg/proxyconfig/proxyconfig_test.go

    		},
    		{ // secret invalid
    			args:           strings.Split("secret invalid", " "),
    			expectedString: "unable to retrieve Pod: pods \"invalid\" not found",
    			wantException:  true, // "istioctl proxy-config secret invalid" should fail
    		},
    		{ // endpoint invalid
    			args:           strings.Split("endpoint invalid", " "),
    			expectedString: "unable to retrieve Pod: pods \"invalid\" not found",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 10 21:51:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  9. pkg/registry/storage/volumeattachment/strategy_test.go

    					},
    					NodeName: "valid-node",
    				},
    			},
    			true,
    		},
    		{
    			"invalid attacher name",
    			&storage.VolumeAttachment{
    				ObjectMeta: metav1.ObjectMeta{
    					Name: "foo",
    				},
    				Spec: storage.VolumeAttachmentSpec{
    					Attacher: "invalid!@#$%^&*()",
    					Source: storage.VolumeAttachmentSource{
    						PersistentVolumeName: &validPVName,
    					},
    					NodeName: "valid-node",
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 15:46:12 UTC 2023
    - 8.8K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/generate_invalid.txt

    // Go generate should process this file with GOPACKAGE=c
    
    //go:generate echo Success $GOPACKAGE
    package c
    // Invalid package clause, should be ignored:
    package cinvalid
    //go:generate echo Success $GOPACKAGE
    
    -- inconsistent/d.go --
    // Go file with invalid package name.
    // Go generate should ignore this file.
    
    package +d+
    //go:generate echo Fail $GOPACKAGE
    
    -- syntax/a.go --
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 09 01:48:44 UTC 2023
    - 4.3K bytes
    - Viewed (0)
Back to top