Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for isAtMost (1.02 seconds)

  1. 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)
  2. 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)
Back to Top