- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 19 for isAtMost (0.21 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/cache/CacheEvictionTest.java
.maximumSize(MAX_SIZE) .removalListener(removalListener) .build(loader); for (int i = 0; i < 2 * MAX_SIZE; i++) { cache.getUnchecked(i); assertThat(cache.size()).isAtMost(MAX_SIZE); } assertThat(CacheTesting.accessQueueSize(cache)).isEqualTo(MAX_SIZE); assertThat(cache.size()).isEqualTo(MAX_SIZE); CacheTesting.processPendingNotifications(cache);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15K bytes - Click Count (0) -
guava-tests/test/com/google/common/math/BigIntegerMathTest.java
for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) { BigInteger result = BigIntegerMath.floorPowerOfTwo(x); assertTrue(BigIntegerMath.isPowerOfTwo(result)); assertThat(result).isAtMost(x); assertThat(result.add(result)).isGreaterThan(x); } } public void testCeilingPowerOfTwoNegative() { for (BigInteger x : NEGATIVE_BIGINTEGER_CANDIDATES) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 04:51:56 GMT 2026 - 27.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheEvictionTest.java
.maximumSize(MAX_SIZE) .removalListener(removalListener) .build(loader); for (int i = 0; i < 2 * MAX_SIZE; i++) { cache.getUnchecked(i); assertThat(cache.size()).isAtMost(MAX_SIZE); } assertThat(CacheTesting.accessQueueSize(cache)).isEqualTo(MAX_SIZE); assertThat(cache.size()).isEqualTo(MAX_SIZE); CacheTesting.processPendingNotifications(cache);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 15K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/CharSourceTest.java
} for (CharSource in : BROKEN_SOURCES) { for (CharSink out : BROKEN_SINKS) { int suppressed = runSuppressionFailureTest(in, out); assertThat(suppressed).isAtMost(1); } } } /** * @return the number of exceptions that were suppressed on the expected thrown exception */ private static int runSuppressionFailureTest(CharSource in, CharSink out) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/QueuesTest.java
// make sure we time out Stopwatch timer = Stopwatch.createStarted(); int drained = drain(q, new ArrayList<>(), 2, 10, MILLISECONDS, interruptibly); assertThat(drained).isAtMost(1); assertThat(timer.elapsed(MILLISECONDS)).isAtLeast(10L); // If even the first one wasn't there, clean up so that the next test doesn't see an element. producerThread.cancel(true);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Nov 04 17:24:58 GMT 2025 - 12.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/ByteSourceTest.java
} for (ByteSource in : BROKEN_SOURCES) { for (ByteSink out : BROKEN_SINKS) { int suppressed = runSuppressionFailureTest(in, out); assertThat(suppressed).isAtMost(1); } } } public void testSlice_returnEmptySource() { assertEquals(ByteSource.empty(), source.slice(0, 3).slice(4, 3)); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
* Set#size()} of at most {@code max}. */ private static void assertMaxSize(SetView<?> set, int max) { assertThat(set.maxSize()).isEqualTo(max); assertThat(set.size()).isAtMost(max); } /** * A {@link Set} that throws {@link NullPointerException} and {@link ClassCastException} from * {@link #contains}. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 29.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/io/ByteSourceTest.java
} for (ByteSource in : BROKEN_SOURCES) { for (ByteSink out : BROKEN_SINKS) { int suppressed = runSuppressionFailureTest(in, out); assertThat(suppressed).isAtMost(1); } } } public void testSlice_returnEmptySource() { assertEquals(ByteSource.empty(), source.slice(0, 3).slice(4, 3)); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 15.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashingTest.java
countRemaps(r.nextLong(), map); } for (int shard = 2; shard <= MAX_SHARDS; shard++) { // Rough: don't exceed 1.2x the expected number of remaps by more than 20 assertThat((double) map.get(shard)).isAtMost(1.2 * ITERS / shard + 20); } } private void countRemaps(long h, AtomicLongMap<Integer> map) { int last = 0; for (int shards = 2; shards <= MAX_SHARDS; shards++) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 26.7K bytes - Click Count (2) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
public void testConstantsMaxFactorial() { BigInteger maxDoubleValue = BigDecimal.valueOf(Double.MAX_VALUE).toBigInteger(); assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL)).isAtMost(maxDoubleValue); assertThat(BigIntegerMath.factorial(DoubleMath.MAX_FACTORIAL + 1)) .isGreaterThan(maxDoubleValue); } public void testConstantsEverySixteenthFactorial() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Feb 03 16:20:39 GMT 2026 - 27.5K bytes - Click Count (0)