- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 21 for isAtMost (0.06 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava-tests/test/com/google/common/collect/AbstractHashFloodingTest.java
"ratio of equals/hashCode/compareTo operations to build with %s entries versus %s" + " entries", largeSize, smallSize) .that(ratio) .isAtMost( 2 * constructionAsymptotics.applyAsDouble(largeSize) / constructionAsymptotics.applyAsDouble(smallSize)); // allow up to 2x wobble in the constant factors }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 9K 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/LocalCacheMapComputeTest.java
// simultaneous update for same key, some null, some non-null 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));Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 6.4K bytes - Click Count (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); } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 114.9K bytes - Click Count (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); } }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 116.4K 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/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/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),
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 63.2K 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)