- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for isAtMost (0.05 sec)
-
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 Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 03:49:18 UTC 2025 - 6.4K 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 Sep 05 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 Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 11.5K bytes - Viewed (0) -
android/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 Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 12.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java
.isEqualTo(Sets.intersection(network.outEdges(node), network.inEdges(otherNode))); } if (!network.allowsParallelEdges()) { assertThat(edgesConnecting.size()).isAtMost(1); } if (!network.allowsSelfLoops() && isSelfLoop) { assertThat(connected).isFalse(); } assertThat(network.successors(node).contains(otherNode)).isEqualTo(connected);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 32.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/BloomFilterTest.java
*/ private static void assertApproximateElementCountGuess(BloomFilter<?> bf, int sizeGuess) { assertThat(bf.approximateElementCount()).isAtLeast((long) (sizeGuess * 0.99)); assertThat(bf.approximateElementCount()).isAtMost((long) (sizeGuess * 1.01)); } public void testCreateAndCheckMitz32BloomFilterWithKnownFalsePositives() { int numInsertions = 1000000; BloomFilter<String> bf = BloomFilter.create(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 22K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/BloomFilterTest.java
*/ private static void assertApproximateElementCountGuess(BloomFilter<?> bf, int sizeGuess) { assertThat(bf.approximateElementCount()).isAtLeast((long) (sizeGuess * 0.99)); assertThat(bf.approximateElementCount()).isAtMost((long) (sizeGuess * 1.01)); } public void testCreateAndCheckMitz32BloomFilterWithKnownFalsePositives() { int numInsertions = 1000000; BloomFilter<String> bf = BloomFilter.create(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 22K bytes - Viewed (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}. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
builder.add(i); } for (int j = 0; j < 1000; j++) { builder.add(9); } ImmutableSortedSet<Integer> unused = builder.build(); assertThat(compares[0]).isAtMost(10000); // hopefully something quadratic would have more digits }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 46.7K bytes - Viewed (0)