- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 20 for isAtMost (0.04 sec)
-
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) {
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Nov 19 01:35:24 UTC 2025 - 27.1K bytes - Viewed (0) -
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);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 18:19:59 UTC 2025 - 15.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java
doParallelCacheOp( count, n -> { cache.asMap().compute(key, (k, v) -> n % 2 == 0 ? v + delimiter + n : null); }); assertThat(cache.size()).isAtMost(1); } public void testCompute() { cache.put(key, "1"); // simultaneous deletion doParallelCacheOp( count, n -> { cache.asMap().compute(key, (k, v) -> null);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 30 22:03:28 UTC 2025 - 7K bytes - Viewed (0) -
guava-tests/test/com/google/common/cache/LocalCacheTest.java
return value; } }); } assertThat(segment.count).isEqualTo(count); assertThat(count).isAtMost(segment.threshold); assertThat(count).isAtMost((segment.table.length() * 3 / 4)); assertThat(count).isGreaterThan(segment.table.length() * 3 / 8); } }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 117.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/LocalCacheTest.java
return value; } }); } assertThat(segment.count).isEqualTo(count); assertThat(count).isAtMost(segment.threshold); assertThat(count).isAtMost((segment.table.length() * 3 / 4)); assertThat(count).isGreaterThan(segment.table.length() * 3 / 8); } }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Fri Dec 12 00:25:21 UTC 2025 - 115.9K bytes - Viewed (0) -
android/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) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (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) {Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (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);Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Nov 04 17:24:58 UTC 2025 - 12.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MapsTest.java
public void testNewHashMapWithExpectedSize_wontGrow() throws Exception { // before jdk7u40: creates one-bucket table // after jdk7u40: creates empty table assertThat(bucketsOf(Maps.newHashMapWithExpectedSize(0))).isAtMost(1); for (int size = 1; size < 200; size++) { assertWontGrow( size, new HashMap<>(), Maps.newHashMapWithExpectedSize(size),
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 62.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
public void testNewHashMapWithExpectedSize_wontGrow() throws Exception { // before jdk7u40: creates one-bucket table // after jdk7u40: creates empty table assertThat(bucketsOf(Maps.newHashMapWithExpectedSize(0))).isAtMost(1); for (int size = 1; size < 200; size++) { assertWontGrow( size, new HashMap<>(), Maps.newHashMapWithExpectedSize(size),
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Dec 11 22:56:33 UTC 2025 - 65K bytes - Viewed (0)