- Sort Score
- Result 10 results
- Languages All
Results 71 - 80 of 315 for has_value (1.16 sec)
-
okhttp/src/jvmTest/kotlin/okhttp3/ResponseBodyJvmTest.kt
@Test fun bytesThrowsMoreThanIntMaxValue() { val body: ResponseBody = object : ResponseBody() { override fun contentType(): MediaType? = null override fun contentLength(): Long = Int.MAX_VALUE + 1L override fun source(): BufferedSource = throw AssertionError() } assertFailsWith<IOException> { body.bytes() }.also { expected -> assertThat(expected.message).isEqualTo(
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 12.4K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CloseResponseTest.java
SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 8); // Max times SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 16); SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 24); SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 32); SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 40); // Max allocation size SMBUtil.writeInt8(Long.MAX_VALUE, buffer, 48); // Max end of file
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 26.9K bytes - Viewed (0) -
guava/src/com/google/common/base/Internal.java
/** * Returns the number of nanoseconds of the given duration without throwing or overflowing. * * <p>Instead of throwing {@link ArithmeticException}, this method silently saturates to either * {@link Long#MAX_VALUE} or {@link Long#MIN_VALUE}. This behavior can be useful when decomposing * a duration in order to call a legacy API which requires a {@code long, TimeUnit} pair. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Apr 14 15:16:19 UTC 2025 - 1.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/lock/Smb2LockTest.java
} @Test @DisplayName("Should create lock with maximum values") void testConstructorWithMaxValues() { long maxOffset = Long.MAX_VALUE; long maxLength = Long.MAX_VALUE; int flags = 0xFFFFFFFF; lock = new Smb2Lock(maxOffset, maxLength, flags); assertNotNull(lock); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/UtilTest.kt
}, ).hasMessage("timeout too small") assertThat( assertThrows<IllegalArgumentException> { checkDuration( "timeout", 1L + Int.MAX_VALUE.toLong(), TimeUnit.MILLISECONDS, ) }, ).hasMessage("timeout too large") } @Test fun testDurationDuration() {
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 3K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/MathBenchmarking.java
* Duplicated from LongMath. * binomial(biggestBinomials[k], k) fits in a long, but not * binomial(biggestBinomials[k] + 1, k). */ static final int[] biggestBinomials = { Integer.MAX_VALUE, Integer.MAX_VALUE, Integer.MAX_VALUE, 3810779, 121977, 16175, 4337, 1733, 887, 534, 361, 265, 206, 169, 143, 125, 111, 101,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Aug 10 19:54:19 UTC 2025 - 4.2K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/ndr/NdrLongTest.java
// Test case 4: Max int value int maxIntValue = Integer.MAX_VALUE; NdrLong ndrLongMax = new NdrLong(maxIntValue); assertEquals(maxIntValue, ndrLongMax.value, "Constructor should correctly initialize with Integer.MAX_VALUE."); // Test case 5: Min int value int minIntValue = Integer.MIN_VALUE;
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 3.2K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/AbstractFutureState.java
return true; } return false; } final @Nullable Listener gasListeners(Listener update) { Listener old = listeners; listeners = update; return old; } static boolean casValue(AbstractFutureState<?> future, @Nullable Object expect, Object update) { if (future.value == expect) { future.value = update; return true; } return false; }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri Feb 21 02:38:37 UTC 2025 - 1.9K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/UnsignedLongs.java
checkPositionIndexes(fromIndex, toIndex, array.length); for (int i = fromIndex; i < toIndex; i++) { array[i] ^= Long.MAX_VALUE; } Arrays.sort(array, fromIndex, toIndex); for (int i = fromIndex; i < toIndex; i++) { array[i] ^= Long.MAX_VALUE; } } /** * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 64-bit * quantities.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 17.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/WebFsIndexHelperTest.java
assertEquals(maxAccessCount, webFsIndexHelper.maxAccessCount); } public void test_setMaxAccessCount_withMaxValue() { webFsIndexHelper.setMaxAccessCount(Long.MAX_VALUE); assertEquals(Long.MAX_VALUE, webFsIndexHelper.maxAccessCount); } public void test_setMaxAccessCount_withZero() { webFsIndexHelper.setMaxAccessCount(0L);
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 10 13:41:04 UTC 2025 - 15.2K bytes - Viewed (0)