- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 17 for IsValid (0.14 sec)
-
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 May 08 22:53:08 GMT 2024 - Last Modified: Fri Jan 19 02:46:48 GMT 2024 - 6.3K bytes - Viewed (0) -
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 May 05 09:35:13 GMT 2024 - Last Modified: Thu Mar 21 08:00:02 GMT 2024 - 5K bytes - Viewed (0) -
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 May 05 19:28:20 GMT 2024 - Last Modified: Mon Sep 04 19:57:37 GMT 2023 - 4K bytes - Viewed (2) -
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 May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 2.8K bytes - Viewed (0) -
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) -
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)