Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 55 for IsValid (5.71 sec)

  1. internal/auth/credentials_test.go

    		}
    	}
    }
    
    func TestGetNewCredentials(t *testing.T) {
    	cred, err := GetNewCredentials()
    	if err != nil {
    		t.Fatalf("Failed to get a new credential")
    	}
    	if !cred.IsValid() {
    		t.Fatalf("Failed to get new valid credential")
    	}
    	if len(cred.AccessKey) != accessKeyMaxLen {
    		t.Fatalf("access key length: expected: %v, got: %v", secretKeyMaxLen, len(cred.AccessKey))
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  2. schema/field.go

    	valuer, isValuer := fieldValue.Interface().(driver.Valuer)
    	if isValuer {
    		if _, ok := fieldValue.Interface().(GormDataTypeInterface); !ok {
    			if v, err := valuer.Value(); reflect.ValueOf(v).IsValid() && err == nil {
    				fieldValue = reflect.ValueOf(v)
    			}
    
    			// Use the field struct's first field type as data type, e.g: use `string` for sql.NullString
    			var getRealFieldValue func(reflect.Value)
    Go
    - Registered: Sun May 05 09:35:13 GMT 2024
    - Last Modified: Mon Apr 15 03:20:20 GMT 2024
    - 32K bytes
    - Viewed (1)
  3. src/main/java/org/codelibs/fess/validation/CronExpressionValidator.java

    public class CronExpressionValidator implements ConstraintValidator<CronExpression, String> {
    
        @Override
        public void initialize(final CronExpression constraintAnnotation) {
        }
    
        @Override
        public boolean isValid(final String value, final ConstraintValidatorContext context) {
            return determineValid(value);
        }
    
        protected boolean determineValid(final String value) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  4. cmd/erasure-metadata_test.go

    		{7, 4},
    		// Insert part.
    		{3, 2},
    		// Replace existing part.
    		{4, 3},
    		// Missing part.
    		{6, -1},
    	}
    
    	// Setup.
    	fi := newFileInfo("test-object", 8, 8)
    	fi.Erasure.Index = 1
    	if !fi.IsValid() {
    		t.Fatalf("unable to get xl meta")
    	}
    
    	// Test them.
    	for _, testCase := range testCases {
    		if testCase.expectedIndex > -1 {
    			partNumString := strconv.Itoa(testCase.partNum)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 26 00:31:12 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  5. internal/config/storageclass/storage-class_test.go

    			continue
    		}
    		if parity != tt.expectedParity {
    			t.Errorf("Test %d, Expected parity drives %d, got %d", i+1, tt.expectedParity, parity)
    		}
    	}
    }
    
    // Test IsValid method with valid and invalid inputs
    func TestIsValidStorageClassKind(t *testing.T) {
    	tests := []struct {
    		sc   string
    		want bool
    	}{
    		{"STANDARD", true},
    		{"REDUCED_REDUNDANCY", true},
    		{"", false},
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Aug 15 23:04:20 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. api/go1.18.txt

    pkg net/netip, method (Addr) IsLoopback() bool
    pkg net/netip, method (Addr) IsMulticast() bool
    pkg net/netip, method (Addr) IsPrivate() bool
    pkg net/netip, method (Addr) IsUnspecified() bool
    pkg net/netip, method (Addr) IsValid() bool
    pkg net/netip, method (Addr) Less(Addr) bool
    pkg net/netip, method (Addr) MarshalBinary() ([]uint8, error)
    pkg net/netip, method (Addr) MarshalText() ([]uint8, error)
    pkg net/netip, method (Addr) Next() Addr
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Feb 17 20:31:46 GMT 2023
    - 13K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/validation/UriTypeValidator.java

            case FILE -> ComponentUtil.getFessConfig().getCrawlerFileProtocolsAsArray();
            default -> throw new ConstraintDefinitionException("protocolType is emtpy.");
            };
        }
    
        @Override
        public boolean isValid(final String value, final ConstraintValidatorContext context) {
            if (StringUtil.isNotBlank(value)) {
                return check(protocols, value);
            }
            return true;
        }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/fess/validation/CustomSizeValidator.java

                max = Integer.parseInt(fessConfig.get(maxKey));
            }
            message = constraintAnnotation.message();
            validateParameters();
        }
    
        @Override
        public boolean isValid(final CharSequence value, final ConstraintValidatorContext context) {
            if (value == null) {
                return true;
            }
    
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.8K bytes
    - Viewed (0)
  9. internal/auth/credentials.go

    func (cred Credentials) IsImpliedPolicy() bool {
    	if cred.IsServiceAccount() {
    		return cred.Claims[iamPolicyClaimNameSA] == "inherited-policy"
    	}
    	return false
    }
    
    // IsValid - returns whether credential is valid or not.
    func (cred Credentials) IsValid() bool {
    	// Verify credentials if its enabled or not set.
    	if cred.Status == AccountOff {
    		return false
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed May 01 12:41:13 GMT 2024
    - 11.7K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/FakeSSLSession.kt

      }
    
      override fun getValueNames(): Array<String> {
        throw UnsupportedOperationException()
      }
    
      override fun invalidate() {
        throw UnsupportedOperationException()
      }
    
      override fun isValid(): Boolean {
        throw UnsupportedOperationException()
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.3K bytes
    - Viewed (0)
Back to top