- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 883 for Seconds (0.05 sec)
-
src/main/java/jcifs/util/ServerResponseValidator.java
throw new SmbException("Buffer access out of bounds"); } } /** * Safely add integers checking for overflow * * @param a first value * @param b second value * @return sum * @throws SmbException if overflow would occur */ public int safeAdd(int a, int b) throws SmbException { totalValidations.incrementAndGet();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 16.6K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java
// First decode response.decode(buffer1, 0, 50); byte[] data1 = response.getData(); // Second decode should overwrite response.decode(buffer2, 10, 60); byte[] data2 = response.getData(); // Verify second decode overwrote first assertEquals(60, data2.length); assertEquals((byte) 0x22, data2[0]); } }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 16.2K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/SmbComCloseTest.java
return Stream.of(Arguments.of(0x1234, 0L, new byte[] { 0x34, 0x12, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF }), // negative fid wraps around, lastWriteTime = 1000 -> 1 second -> int value 1 Arguments.of(-1, 1000L, new byte[] { (byte) 0xFF, (byte) 0xFF, 0x01, 0x00, 0x00, 0x00 })); } /** * When lastWriteTime is zero the encoded unsigned time must be all 1s. */
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 4.8K bytes - Viewed (0) -
utils/utils.go
func FileWithLineNum() string { pcs := [13]uintptr{} // the third caller usually from gorm internal len := runtime.Callers(3, pcs[:]) frames := runtime.CallersFrames(pcs[:len]) for i := 0; i < len; i++ { // second return value is "more", not "ok" frame, _ := frames.Next() if (!strings.HasPrefix(frame.File, gormSourceDir) || strings.HasSuffix(frame.File, "_test.go")) && !strings.HasSuffix(frame.File, ".gen.go") {
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Aug 22 11:03:42 UTC 2024 - 4.1K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/rank/fusion/SearchResultTest.java
doc1.put("id", "1"); builder1.addDocument(doc1); builder1.allRecordCount(1L); SearchResult result1 = builder1.build(); // Create second result with two documents using a new builder SearchResult.SearchResultBuilder builder2 = SearchResult.create(); Map<String, Object> doc2a = new HashMap<>(); doc2a.put("id", "2a");
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 12.9K bytes - Viewed (0) -
src/test/java/jcifs/smb1/util/HexdumpTest.java
assertNotNull(output); assertTrue(output.contains("00000:")); assertTrue(output.contains("00010:")); // Second line offset // Verify first line contains bytes 0-15 assertTrue(output.contains(" 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F")); // Verify second line contains bytes 16-31 assertTrue(output.contains(" 10 11 12 13 14 15 16 17 18 19 1A 1B 1C 1D 1E 1F")); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.4K bytes - Viewed (0) -
cmd/server_test.go
c.Assert(err, nil) c.Assert(response.StatusCode, http.StatusOK) objectName := "test-multipart-object" // 1. Initiate 2 uploads for the same object // 2. Upload 2 parts for the second upload // 3. Abort the second upload. // 4. Abort the first upload. // This will test abort upload when there are more than one upload IDs // and the case where there is only one upload ID.
Registered: Sun Sep 07 19:28:11 UTC 2025 - Last Modified: Fri Aug 29 02:39:48 UTC 2025 - 118.1K bytes - Viewed (0) -
src/test/java/jcifs/spnego/NegTokenInitTest.java
byte[] thirdEncoding = parsed2.toByteArray(); assertArrayEquals(firstEncoding, secondEncoding, "First and second encoding should be identical"); assertArrayEquals(secondEncoding, thirdEncoding, "Second and third encoding should be identical"); // Verify content preservation assertArrayEquals(mechs, parsed2.getMechanisms());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 21K bytes - Viewed (0) -
tests/update_has_one_test.go
t.Fatalf("errors happened when update: %v", err) } var user3 User DB.Preload("Account").Find(&user3, "id = ?", user.ID) CheckUser(t, user2, user3) lastUpdatedAt := user2.Account.UpdatedAt time.Sleep(time.Second) if err := DB.Session(&gorm.Session{FullSaveAssociations: true}).Save(&user).Error; err != nil { t.Fatalf("errors happened when update: %v", err) } var user4 User
Registered: Sun Sep 07 09:35:13 UTC 2025 - Last Modified: Thu Jul 14 06:55:54 UTC 2022 - 3.6K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2QueryPathInformationTest.java
assertEquals(2, bytesWritten, "Should write 2 bytes."); assertEquals(SmbComTransaction.TRANS2_QUERY_PATH_INFORMATION, dst[0], "The first byte should be the subCommand."); assertEquals((byte) 0x00, dst[1], "The second byte should be 0."); } /** * Tests the writeParametersWireFormat method. */ @Test void testWriteParametersWireFormat() { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0)