Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 296 for _isValid (0.6 sec)

  1. src/main/webapp/js/admin/moment-with-locales.min.js

    a=0,t=ca.length;a<t;a++)if(ca[a][1].exec(i[1])){n=ca[a][0],s=!1!==ca[a][2];break}if(null==n)return void(e._isValid=!1);if(i[3]){for(a=0,t=Ya.length;a<t;a++)if(Ya[a][1].exec(i[3])){d=(i[2]||" ")+Ya[a][0];break}if(null==d)return void(e._isValid=!1)}if(!s&&null!=d)return void(e._isValid=!1);if(i[4]){if(!La.exec(i[4]))return void(e._isValid=!1);r="Z"}e._f=n+(d||"")+(r||""),ga(e)}else e._isValid=!1}var ka=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Jul 12 13:18:07 UTC 2018
    - 319K bytes
    - Viewed (0)
  2. istioctl/pkg/install/k8sversion/version_test.go

    		expected int
    		errMsg   error
    		isValid  bool
    	}{
    		{
    			version:  version1_17,
    			expected: 17,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_8,
    			expected: 8,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_18,
    			expected: 18,
    			errMsg:   nil,
    			isValid:  true,
    		},
    		{
    			version:  version1_19,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 19 02:46:48 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  3. pkg/config/validation/agent/validation_test.go

    		policy  meshconfig.AuthenticationPolicy
    		isValid bool
    	}{
    		{
    			name:    "invalid policy",
    			policy:  -1,
    			isValid: false,
    		},
    		{
    			name:    "valid policy",
    			policy:  0,
    			isValid: true,
    		},
    		{
    			name:    "valid policy",
    			policy:  1,
    			isValid: true,
    		},
    		{
    			name:    "invalid policy",
    			policy:  2,
    			isValid: false,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 17 20:06:41 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  4. pkg/registry/apps/controllerrevision/strategy_test.go

    		name       string
    		newHistory *apps.ControllerRevision
    		oldHistory *apps.ControllerRevision
    		isValid    bool
    	}{
    		{
    			name:       "valid",
    			newHistory: valid,
    			oldHistory: valid,
    			isValid:    true,
    		},
    		{
    			name:       "changed data",
    			newHistory: changedData,
    			oldHistory: valid,
    			isValid:    false,
    		},
    		{
    			name:       "changed revision",
    			newHistory: changedRevision,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 09 11:14:08 UTC 2017
    - 4.5K bytes
    - Viewed (0)
  5. src/cmd/gofmt/rewrite.go

    		p := pattern.Interface().(*ast.CallExpr)
    		v := val.Interface().(*ast.CallExpr)
    		if p.Ellipsis.IsValid() != v.Ellipsis.IsValid() {
    			return false
    		}
    	}
    
    	p := reflect.Indirect(pattern)
    	v := reflect.Indirect(val)
    	if !p.IsValid() || !v.IsValid() {
    		return !p.IsValid() && !v.IsValid()
    	}
    
    	switch p.Kind() {
    	case reflect.Slice:
    		if p.Len() != v.Len() {
    			return false
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 27 22:07:13 UTC 2023
    - 8.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/validation/ratcheting_test.go

    	validator := validation.NewRatchetingSchemaValidator(mediumIntSchema, nil, "", strfmt.Default)
    	require.True(t, validator.ValidateUpdate(1, 1, validation.WithRatcheting(nil)).IsValid())
    	require.False(t, validator.ValidateUpdate(1, 2, validation.WithRatcheting(nil)).IsValid())
    }
    
    var objectSchema *spec.Schema = &spec.Schema{
    	SchemaProps: spec.SchemaProps{
    		Type: spec.StringOrArray{"object"},
    		Properties: map[string]spec.Schema{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Oct 24 18:20:09 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. utils/tests/utils.go

    )
    
    func AssertObjEqual(t *testing.T, r, e interface{}, names ...string) {
    	for _, name := range names {
    		rv := reflect.Indirect(reflect.ValueOf(r))
    		ev := reflect.Indirect(reflect.ValueOf(e))
    		if rv.IsValid() != ev.IsValid() {
    			t.Errorf("%v: expect: %+v, got %+v", utils.FileWithLineNum(), r, e)
    			return
    		}
    		got := rv.FieldByName(name).Interface()
    		expect := ev.FieldByName(name).Interface()
    		t.Run(name, func(t *testing.T) {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Fri Mar 10 09:21:56 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  8. 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)
  9. src/go/types/version.go

    // If v is not a valid Go version, the result is the empty string.
    func asGoVersion(v string) goVersion {
    	return goVersion(version.Lang(v))
    }
    
    // isValid reports whether v is a valid Go version.
    func (v goVersion) isValid() bool {
    	return v != ""
    }
    
    // cmp returns -1, 0, or +1 depending on whether x < y, x == y, or x > y,
    // interpreted as Go versions.
    func (x goVersion) cmp(y goVersion) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 14 23:12:40 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  10. internal/bucket/replication/sourceselectioncriteria.go

    type SourceSelectionCriteria struct {
    	ReplicaModifications ReplicaModifications `xml:"ReplicaModifications" json:"ReplicaModifications"`
    }
    
    // IsValid - checks whether SourceSelectionCriteria is valid or not.
    func (s SourceSelectionCriteria) IsValid() bool {
    	return s.ReplicaModifications.Status == Enabled || s.ReplicaModifications.Status == Disabled
    }
    
    // Validate source selection criteria
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top