- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 33 for IsValid (0.05 sec)
-
src/test/java/jcifs/SmbFileHandleTest.java
} /** * Test isValid() when the handle is valid. */ @Test void testIsValid_whenValid() { when(smbFileHandle.isValid()).thenReturn(true); assertTrue(smbFileHandle.isValid(), "isValid should return true when the handle is valid."); verify(smbFileHandle, times(1)).isValid(); } /** * Test isValid() when the handle is invalid. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.1K bytes - Viewed (0) -
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: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Fri Mar 10 09:21:56 UTC 2023 - 3.9K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/ConfiguredGoalSupport.java
SecDispatcher.ValidationResponse response = secDispatcher.validateConfiguration(); if (!response.isValid() || context.options().verbose().orElse(false)) { dumpResponse(context, "", response); } return response.isValid(); } protected void dumpResponse(EncryptContext context, String indent, SecDispatcher.ValidationResponse response) {
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jun 11 13:14:09 UTC 2025 - 4.2K bytes - Viewed (0) -
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 criteriaRegistered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Tue Jun 01 21:59:40 UTC 2021 - 2.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/RequestHeader.java
* <p>Example usage:</p> * <pre> * RequestHeader header = new RequestHeader("Content-Type", "application/json"); * String name = header.getName(); * String value = header.getValue(); * boolean isValid = header.isValid(); * </pre> * * <p>Note: The name should not be blank and the value should not be null for the header to be considered valid.</p> * * @see java.io.Serializable */
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3K bytes - Viewed (0) -
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;Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.4K bytes - Viewed (1) -
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 }
Registered: Sun Dec 28 19:28:13 UTC 2025 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/rdma/RdmaBufferManagerTest.java
RdmaMemoryRegion region2 = bufferManager.getSendRegion(1024); assertNotNull(region2); // Both regions should be valid assertTrue(region1.isValid() || !region1.isValid()); // Either state is OK after release assertTrue(region2.isValid(), "New region should be valid"); }
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.1K bytes - Viewed (0) -
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);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 3.7K 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:Registered: Sun Dec 28 09:35:17 UTC 2025 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 5K bytes - Viewed (0)