- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 431 for ints (0.12 sec)
-
src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java
private static byte[] buildIoctlResponseBody(int ctlCode, byte[] fileId, int inputCount, byte[] inputBytes, int outputCount, byte[] outputBytes, int ioctlFlags) { final int headerLen = 64; // SMB2 header is 64 bytes final int bodyFixed = 48; // body size minus 1 for structure size field overlap final int payloadStart = headerLen + bodyFixed; final int bodyLen = bodyFixed + inputCount + outputCount;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
// When int size = copy.size(); // Then assertEquals(HEADER_SIZE + CHUNK_SIZE, size); } @ParameterizedTest @DisplayName("Should return correct size with multiple chunks") @ValueSource(ints = { 1, 2, 3, 5, 10, 100 }) void testSizeWithMultipleChunks(int chunkCount) { // Given
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
src/test/java/jcifs/smb1/smb1/Trans2GetDfsReferralTest.java
// writeInt2 writes in little-endian format (LSB first) int written = (buffer[0] & 0xFF) | ((buffer[1] & 0xFF) << 8); int expected = level & 0xFFFF; assertEquals(expected, written); } // Helper method to extract string from buffer private String extractStringFromBuffer(byte[] buffer, int offset, int maxLen) { int end = offset; while (end < offset + maxLen && buffer[end] != 0) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.6K bytes - Viewed (0) -
src/test/java/jcifs/util/HexdumpTest.java
assertEquals(64, result.length()); // 32 bytes * 2 chars per byte } @ParameterizedTest @ValueSource(ints = { 1, 16, 32, 64, 128, 256 }) @DisplayName("Should handle various data sizes") void testVariousDataSizes(int size) { // Given byte[] data = createTestData(size); // When String result = Hexdump.toHexString(data); // Then
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/primitives/BytesTest.java
public void testConcat_overflow_negative() { int dim1 = 1 << 16; int dim2 = 1 << 15; assertThat(dim1 * dim2).isLessThan(0); testConcatOverflow(dim1, dim2); } @GwtIncompatible // different overflow behavior; could probably be made to work by using ~~ public void testConcat_overflow_nonNegative() { int dim1 = 1 << 16; int dim2 = 1 << 16; assertThat(dim1 * dim2).isAtLeast(0);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 17.5K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbTreeHandleInternalTest.java
verify(handle, times(1)).ensureDFSResolved(); } @ParameterizedTest @ValueSource(ints = { 0, 1, -1, Integer.MIN_VALUE, Integer.MAX_VALUE }) @DisplayName("hasCapability(cap): returns configured value and captures argument across edge caps") void hasCapability_variousCaps_returnsTrue_andCapturesArgument(int cap) throws Exception { // Arrange: stub to return true regardless of input
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
int last = 0; for (int shards = 2; shards <= MAX_SHARDS; shards++) { int chosen = Hashing.consistentHash(h, shards); if (chosen != last) { map.incrementAndGet(shards); last = chosen; } } } private static final int ITERS = 10000; private static final int MAX_SHARDS = 500;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 26.4K bytes - Viewed (2) -
src/test/java/jcifs/internal/smb2/create/CreateContextRequestTest.java
int[] expectedSizes = { 16, 24, 32, 40, 48 }; for (int i = 0; i < contexts.length; i++) { contexts[i] = new MockCreateContextRequest("CTX" + i, expectedSizes[i]); } // Calculate total size int totalSize = 0; for (int i = 0; i < contexts.length; i++) {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 24.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ServerMessageBlock2ResponseTest.java
} } @ParameterizedTest @ValueSource(ints = { NtStatus.NT_STATUS_SUCCESS, NtStatus.NT_STATUS_PENDING, NtStatus.NT_STATUS_ACCESS_DENIED, NtStatus.NT_STATUS_INVALID_PARAMETER }) @DisplayName("Should handle various status codes") void testVariousStatusCodes(int status) { response.setStatusForTest(status); assertEquals(status, response.getErrorCode());
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 19.3K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffRequestTest.java
Smb2LogoffRequest req = newRequest(); int base = Smb2Constants.SMB2_HEADER_LENGTH + 4; // structure size int expected = ((base + 7) / 8) * 8; // expected 8-byte alignment // Act int actual = req.size(); // Assert assertEquals(expected, actual, "size() must be 8-byte aligned"); } @ParameterizedTest @ValueSource(ints = { 0, 1, 5 })
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 5.4K bytes - Viewed (0)