- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for isAtMost (0.2 sec)
-
guava-tests/test/com/google/common/collect/TopKSelectorTest.java
top.offer(1); for (int i = 1; i < n; i++) { top.offer(0); } assertThat(top.topK()).containsExactlyElementsIn(Collections.nCopies(k, 0)); assertThat(compareCalls[0]).isAtMost(10L * n * IntMath.log2(k, RoundingMode.CEILING)); } public void testExceedMaxIteration() { /* * Bug #5692 occurred when TopKSelector called Arrays.sort incorrectly. */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Mar 07 18:34:03 UTC 2024 - 3.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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 10.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, newArrayList(), 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 12K 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, newArrayList(), 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 12K bytes - Viewed (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)); } /**
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 07 15:26:58 UTC 2024 - 15.4K 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: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 21.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/net/InetAddressesTest.java
InetAddresses.coerceToInteger( InetAddresses.getCoercedIPv4Address(InetAddresses.forString("2001:4860::1"))); assertThat(coercedInt).isAtLeast(0xe0000000); assertThat(coercedInt).isAtMost(0xfffffffe); } public void testCoerceToInteger() { assertThat(InetAddresses.coerceToInteger(InetAddresses.forString("127.0.0.1"))) .isEqualTo(0x7f000001); }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 24 16:44:05 UTC 2024 - 35.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/MapsTest.java
for (int i = 0; i < size; i++) { referenceMap.put(i, null); } assertWithMessage("table size after adding " + size + " elements") .that(initialBuckets) .isAtMost(bucketsOf(referenceMap)); } @J2ktIncompatible @GwtIncompatible // reflection private static int bucketsOf(HashMap<?, ?> hashMap) throws Exception {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri May 17 15:27:58 UTC 2024 - 67.1K bytes - Viewed (0)