- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 893 for isValid (0.04 sec)
-
src/test/java/jcifs/internal/smb2/nego/Smb2NegotiateResponseTest.java
// When boolean valid = response.isValid(mockContext, mockRequest); // Then assertTrue(valid); assertEquals(DialectVersion.SMB311, response.getSelectedDialect()); } @Test @DisplayName("Should fail validation when not received") void testIsValidNotReceived() { // When boolean valid = response.isValid(mockContext, mockRequest); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 32.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
// Re-prepare state for second branch: not open but handle set when(fileHandle.isValid()).thenReturn(false); // Need to reopen logic to set handle again // Reset open flag by reconstructing target target = new SmbPipeHandleImpl(pipe); target.ensureOpen(); // handle present but invalid per isValid=false target.close(); verify(fileHandle, atLeastOnce()).release(); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 9.4K bytes - Viewed (1) -
src/test/java/jcifs/smb/PreauthIntegrityServiceTest.java
fail("Expected CIFSException"); } catch (CIFSException e) { // Expected } assertFalse(context.isValid()); // Further operations on invalid context should fail assertThrows(CIFSException.class, () -> { preauthService.updatePreauthHash(sessionId, "test".getBytes()); }); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11.1K bytes - Viewed (0) -
cmd/erasure-healing-common.go
for index, e := range etags { if partsMetadata[index].IsValid() && e == etag { onlineDisks[index] = disks[index] } else { onlineDisks[index] = nil } } return onlineDisks, modTime, etag } } // Create a new online disks slice, which have common uuid. for index, t := range modTimes { if partsMetadata[index].IsValid() && t.Equal(modTime) { onlineDisks[index] = disks[index]
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 12K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleInternalTest.java
when(fh.acquire()).thenReturn(fh); when(fh.isValid()).thenReturn(true, false); // first true, then false handle.ensureOpen(); assertTrue(handle.isOpen()); // Simulate invalidation assertFalse(handle.isOpen(), "Becomes not open when underlying handle invalid"); // After close, report stale handle.close();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 07:14:38 UTC 2025 - 16.7K bytes - Viewed (0) -
cmd/storage-rest-server.go
if err := storageServerRequestValidate(r); err != nil { s.writeErrorResponse(w, err) return false } return true } // IsValid - To authenticate and check if the disk-id in the request corresponds to the underlying disk. func (s *storageRESTServer) IsValid(w http.ResponseWriter, r *http.Request) bool { if !s.IsAuthValid(w, r) { return false } if err := r.ParseForm(); err != nil {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Tue May 27 15:19:03 UTC 2025 - 45.7K 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: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 7.1K bytes - Viewed (0) -
cmd/peer-rest-server.go
func (s *peerRESTServer) HealthHandler(w http.ResponseWriter, r *http.Request) { s.IsValid(w, r) } // VerifyBinary - verifies the downloaded binary is in-tact func (s *peerRESTServer) VerifyBinaryHandler(w http.ResponseWriter, r *http.Request) { if !s.IsValid(w, r) { s.writeErrorResponse(w, errors.New("Invalid request")) return } if r.ContentLength < 0 {
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Sun Mar 30 00:56:02 UTC 2025 - 53.4K 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 Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Mar 21 08:00:02 UTC 2024 - 5K bytes - Viewed (0)