Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 81 - 90 of 248 for UNUSED (0.19 seconds)

  1. guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java

        // stored log records causes a ConcurrentModificationException
        assertTrue(handler.getStoredLogRecords().isEmpty());
        ExampleClassUnderTest.foo();
        ExampleClassUnderTest.foo();
        for (LogRecord unused : handler.getStoredLogRecords()) {
          ExampleClassUnderTest.foo();
        }
      }
    
      @Override
      public final void runBare() throws Throwable {
        try {
          setUp();
          runTest();
        } finally {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 16:11:48 GMT 2026
    - 2.9K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/net/PercentEscaperTest.java

        assertThat(expected).hasMessageThat().isEqualTo(msg);
      }
    
      public void testBadArguments_plusforspace() {
        // space can be a safe char if plusForSpace is false
        PercentEscaper unused = new PercentEscaper(" ", false);
    
        // space cannot be a safe char is plusForSpace is true
        String msg = "plusForSpace cannot be specified when space is a 'safe' character";
        IllegalArgumentException expected =
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 15:59:55 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

                throw new OutOfMemoryError();
              }
    
              @Override
              public int hashCode() {
                throw new OutOfMemoryError();
              }
            });
    
        String unused = future.toString();
    
        SettableFuture<Object> future2 = SettableFuture.create();
    
        // A more organic OOM from a toString implementation
        Object object =
            new Object() {
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ListeningExecutorService executor = newDirectExecutorService();
        List<Callable<T>> tasks = ImmutableList.of();
        List<? extends Future<?>> unused = executor.invokeAll(tasks);
      }
    
      public void testListeningDecorator() throws Exception {
        ListeningExecutorService service = listeningDecorator(newDirectExecutorService());
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/collect/ImmutableMultisetFloodingTest.java

        super(
            asList(ConstructionPathway.values()),
            n -> n * log(n),
            ImmutableList.of(
                QueryOp.create(
                    "count",
                    (ms, o) -> {
                      int unused = ms.count(o);
                    },
                    Math::log)));
      }
    
      /** All the ways to create an ImmutableMultiset. */
      enum ConstructionPathway implements Construction<Multiset<Object>> {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 2.5K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        addEdge(N1, N2, E12);
        IllegalArgumentException e =
            assertThrows(
                IllegalArgumentException.class,
                () -> {
                  Set<String> unused = network.edgesConnecting(ENDPOINTS_N1N2);
                });
        assertThat(e).hasMessageThat().contains(ENDPOINTS_MISMATCH);
      }
    
      @Test
      public void edgeConnecting_orderMismatch() {
        addEdge(N1, N2, E12);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 17:09:51 GMT 2025
    - 19K bytes
    - Click Count (0)
  7. guava-testlib/test/com/google/common/testing/ArbitraryInstancesTest.java

        public NoDefaultConstructor(@SuppressWarnings("unused") int i) {}
      }
    
      public static class WithExceptionalConstructor {
        public static final WithExceptionalConstructor INSTANCE =
            new WithExceptionalConstructor("whatever");
    
        public WithExceptionalConstructor() {
          throw new RuntimeException();
        }
    
        private WithExceptionalConstructor(String unused) {}
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  8. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt

    import okio.FileSystem
    import okio.Path
    import okio.Path.Companion.toOkioPath
    import okio.buffer
    import okio.source
    
    /**
     * Utilities for reading HPACK tests.
     */
    object HpackJsonUtil {
      @Suppress("unused")
      private val MOSHI =
        Moshi
          .Builder()
          .add(
            object : Any() {
              @ToJson fun byteStringToJson(byteString: ByteString) = byteString.hex()
    
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  9. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

                .build();
    
        cache.put(key, "1");
        // simultaneous load and deletion
        doParallelCacheOp(
            count,
            n -> {
              try {
                String unused = cache.get(key, () -> key);
                cache.asMap().compute(key, (k, v) -> null);
              } catch (ExecutionException e) {
                throw new UncheckedExecutionException(e);
              }
            });
    
    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)
  10. android/guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

            "U1.00", "U1.00", "R0.00", "R0.00", "R0.00", "R0.00", // first request and burst
            "R0.20");
      }
    
      public void testCreateWarmupParameterValidation() {
        RateLimiter unused;
        unused = RateLimiter.create(1.0, 1, NANOSECONDS);
        unused = RateLimiter.create(1.0, 0, NANOSECONDS);
    
        assertThrows(IllegalArgumentException.class, () -> RateLimiter.create(0.0, 1, NANOSECONDS));
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 12 17:47:10 GMT 2026
    - 22K bytes
    - Click Count (0)
Back to Top