Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for IsValid (0.24 sec)

  1. 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,
    Go
    - Registered: Wed Apr 24 22:53:08 GMT 2024
    - Last Modified: Fri Jan 19 02:46:48 GMT 2024
    - 6.3K bytes
    - Viewed (0)
  2. logger/sql.go

    				} else {
    					vars[idx] = escaper + v.Format(tmFmtWithMS) + escaper
    				}
    			} else {
    				vars[idx] = nullStr
    			}
    		case driver.Valuer:
    			reflectValue := reflect.ValueOf(v)
    			if v != nil && reflectValue.IsValid() && ((reflectValue.Kind() == reflect.Ptr && !reflectValue.IsNil()) || reflectValue.Kind() != reflect.Ptr) {
    				r, _ := v.Value()
    				convertParams(r, idx)
    			} else {
    				vars[idx] = nullStr
    			}
    		case fmt.Stringer:
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 21 08:00:02 GMT 2024
    - 5K bytes
    - Viewed (0)
  3. 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) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Fri Mar 10 09:21:56 GMT 2023
    - 3.9K bytes
    - Viewed (0)
  4. 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
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbFileHandleImpl.java

         * @throws SmbException
         */
        public int getFid () throws SmbException {
            if ( !isValid() ) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fid;
        }
    
    
        public byte[] getFileId () throws SmbException {
            if ( !isValid() ) {
                throw new SmbException("Descriptor is no longer valid");
            }
            return this.fileId;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 8.6K bytes
    - Viewed (0)
  6. okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingSSLSession.kt

      }
    
      override fun getLastAccessedTime(): Long {
        return delegate!!.lastAccessedTime
      }
    
      override fun invalidate() {
        delegate!!.invalidate()
      }
    
      override fun isValid(): Boolean {
        return delegate!!.isValid
      }
    
      override fun putValue(
        s: String,
        o: Any,
      ) {
        delegate!!.putValue(s, o)
      }
    
      override fun getValue(s: String): Any {
        return delegate!!.getValue(s)
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

        // Throws exception if not working correctly
        HostSpecifier unused = HostSpecifier.fromValid(spec);
        unused = HostSpecifier.from(spec);
        assertTrue(HostSpecifier.isValid(spec));
      }
    
      private void assertBad(String spec) {
        try {
          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 18 15:33:20 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  8. internal/bucket/replication/destination.go

    func (d Destination) isValidStorageClass() bool {
    	if d.StorageClass == "" {
    		return true
    	}
    	return d.StorageClass == "STANDARD" || d.StorageClass == "REDUCED_REDUNDANCY"
    }
    
    // IsValid - checks whether Destination is valid or not.
    func (d Destination) IsValid() bool {
    	return d.Bucket != "" || !d.isValidStorageClass()
    }
    
    func (d Destination) String() string {
    	return d.ARN
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Sep 04 19:57:37 GMT 2023
    - 4K bytes
    - Viewed (2)
  9. guava-tests/test/com/google/common/net/HostSpecifierTest.java

        // Throws exception if not working correctly
        HostSpecifier unused = HostSpecifier.fromValid(spec);
        unused = HostSpecifier.from(spec);
        assertTrue(HostSpecifier.isValid(spec));
      }
    
      private void assertBad(String spec) {
        try {
          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Fri Feb 18 15:33:20 GMT 2022
    - 3.7K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb/SmbWatchHandleImpl.java

        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.SmbWatchHandle#watch()
         */
        @Override
        public List<FileNotifyInformation> watch () throws CIFSException {
            if ( !this.handle.isValid() ) {
                throw new SmbException("Watch was broken by tree disconnect");
            }
            try ( SmbTreeHandleImpl th = this.handle.getTree() ) {
    
                CommonServerMessageBlockRequest req;
    Java
    - Registered: Sun Apr 28 00:10:09 GMT 2024
    - Last Modified: Sun Jul 01 13:12:10 GMT 2018
    - 4.5K bytes
    - Viewed (0)
Back to top