- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 50 for IsValid (0.15 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
utils/utils.go
results[idx] = v case []byte: results[idx] = string(v) case uint: results[idx] = strconv.FormatUint(uint64(v), 10) default: results[idx] = "nil" vv := reflect.ValueOf(v) if vv.IsValid() && !vv.IsZero() { results[idx] = fmt.Sprint(reflect.Indirect(vv).Interface()) } } } return strings.Join(results, "_") } func Contains(elems []string, elem string) bool {
Go - Registered: Sun May 05 09:35:13 GMT 2024 - Last Modified: Mon Apr 22 06:43:02 GMT 2024 - 3.8K bytes - Viewed (0) -
internal/config/storageclass/storage-class.go
type Alias Config aux := &struct { *Alias }{ Alias: (*Alias)(sCfg), } return json.Unmarshal(data, &aux) } // IsValid - returns true if input string is a valid // storage class kind supported. func IsValid(sc string) bool { return sc == RRS || sc == STANDARD } // UnmarshalText unmarshals storage class from its textual form into // storageClass structure.
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 11.8K bytes - Viewed (0)