- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 478 for corrupt (0.05 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
assertEquals(HEADER_SIZE + CHUNK_SIZE, bytesWritten); // Verify source key at correct position for (int i = 0; i < SOURCE_KEY_SIZE; i++) { assertEquals(sourceKey[i], largeBuffer[position + i]); } // Verify chunk count at correct position assertEquals(1, SMBUtil.readInt4(largeBuffer, position + SOURCE_KEY_SIZE)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
if (dividend >= 0) { return dividend / divisor; } /* * Otherwise, approximate the quotient, check, and correct if necessary. Our approximation is * guaranteed to be either exact or one less than the correct value. This follows from fact that * floor(floor(x)/i) == floor(x/i) for any real x and integer i != 0. The proof is not quite * trivial. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 17.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractIteratorTest.java
assertEquals(1, (int) iter.peek()); assertEquals(1, (int) iter.next()); /* * We test peek() after various calls to make sure that one bad call doesn't interfere with its * ability to throw the correct exception in the future. */ assertThrows(NoSuchElementException.class, iter::peek); assertThrows(NoSuchElementException.class, iter::peek); assertThrows(NoSuchElementException.class, iter::next);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 7.8K bytes - Viewed (0) -
src/test/java/jcifs/SmbTreeTest.java
assertNotNull(middle, "Middle tree should not be null"); assertNotNull(inner, "Inner tree should not be null"); assertSame(middleTree, middle, "Should return correct middle tree"); assertSame(innerTree, inner, "Should return correct inner tree"); } /** * Test for unwrap with incompatible type. * Verifies behavior when trying to unwrap to an incompatible type. */ @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.2K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/ServerTruncatesRequestTest.kt
expectedEvents += "ConnectionReleased" expectedEvents += "CallEnd" assertThat(listener.recordedEventTypes()).isEqualTo(expectedEvents) // Confirm that the connection pool was not corrupted by making another call. makeSimpleCall() } /** * If the server returns a full response, it doesn't really matter if the HTTP/2 stream is reset. * Attempts to write the request body fails fast.
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Jun 20 11:46:46 UTC 2025 - 9.4K bytes - Viewed (0) -
src/test/java/jcifs/DialectVersionTest.java
assertNotNull(DialectVersion.SMB300); assertNotNull(DialectVersion.SMB302); assertNotNull(DialectVersion.SMB311); } @Test @DisplayName("Should have correct version ordering") void testVersionOrdering() { // SMB versions should be ordered chronologically assertTrue(DialectVersion.SMB1.compareTo(DialectVersion.SMB202) < 0);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
// Test with various messages String message = "Test error message"; TransportException exception = new TransportException(message); // Verify the exception has the correct message assertNotNull(exception); assertEquals(message, exception.getMessage()); assertNull(exception.getCause()); // Test with empty string
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/trans/nt/FileNotifyInformationImplTest.java
int expectedBytes = 12 + (fileName.length() * 2); // Unicode is 2 bytes per char assertEquals(expectedBytes, bytesRead); } @Test @DisplayName("Test getAction returns correct value") void testGetAction() throws SMBProtocolDecodingException { int expectedAction = FileNotifyInformation.FILE_ACTION_RENAMED_NEW_NAME;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.1K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/UUIDTest.java
// Act String result = uuid.toString(); // Assert assertEquals(VALID_UUID_STRING, result.toUpperCase(), "toString() should return the correct UUID string in uppercase"); } @Test @DisplayName("toString() should work correctly for UUID created from string") void testToStringFromConstructorWithString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 13.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/FunctionsTest.java
assertEquals("correct", f.apply(new Object())); assertEquals("correct", f.apply(null)); Function<@Nullable Object, @Nullable String> g = Functions.constant(null); assertEquals(null, g.apply(2)); assertEquals(null, g.apply(null)); new EqualsTester() .addEqualityGroup(f, Functions.constant("correct"))
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 15.9K bytes - Viewed (0)