Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 269 for tester (0.14 sec)

  1. guava-tests/test/com/google/common/util/concurrent/RateLimiterTest.java

          }
        }
      }
    
      public void testNulls() {
        NullPointerTester tester =
            new NullPointerTester()
                .setDefault(SleepingStopwatch.class, stopwatch)
                .setDefault(int.class, 1)
                .setDefault(double.class, 1.0d);
        tester.testStaticMethods(RateLimiter.class, Visibility.PACKAGE);
        tester.testInstanceMethods(RateLimiter.create(5.0, stopwatch), Visibility.PACKAGE);
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 21.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/base/FunctionsTest.java

        checkCanReserializeSingleton(Functions.toStringFunction());
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointerExceptions() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(Functions.class);
      }
    
      public void testForMapWithoutDefault() {
        Map<String, @Nullable Integer> map = Maps.newHashMap();
        map.put("One", 1);
        map.put("Three", 3);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 16K bytes
    - Viewed (0)
  3. android/pom.xml

          </activation>
          <properties>
            <!--
                Some tests need reflective access to the internals of these packages. It is only the
                tests themselves and not the code being tested that needs that access, though there's no
                obvious way to ensure that.
    
                We could consider arranging things so that only the tests we know need this would get
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 03 20:33:34 UTC 2024
    - 19.4K bytes
    - Viewed (0)
  4. pom.xml

          </activation>
          <properties>
            <!--
                Some tests need reflective access to the internals of these packages. It is only the
                tests themselves and not the code being tested that needs that access, though there's no
                obvious way to ensure that.
    
                We could consider arranging things so that only the tests we know need this would get
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Jun 03 20:33:34 UTC 2024
    - 19K bytes
    - Viewed (0)
  5. src/net/timeout_test.go

    		}
    		t.Fatalf("expected Accept to not return, but it returned with %v", err)
    	case <-max.C:
    		ln.Close()
    		<-ch // wait for tester goroutine to stop
    	}
    }
    
    var readTimeoutTests = []struct {
    	timeout time.Duration
    	xerrs   [2]error // expected errors in transition
    }{
    	// Tests that read deadlines work, even if there's data ready
    	// to be read.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 18:06:55 UTC 2024
    - 30K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

        } catch (IllegalArgumentException expected) {
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // NullPointerTester
      public void testNullPointers() {
        NullPointerTester tester = new NullPointerTester();
        tester.testAllPublicStaticMethods(ImmutableMultiset.class);
      }
    
      @J2ktIncompatible
      @GwtIncompatible // SerializableTester
      public void testSerialization_empty() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 17 15:27:58 UTC 2024
    - 25K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java

      }
    
      @GwtIncompatible // NullPointerTester
      public void testNullParameters() throws Exception {
        NullPointerTester tester = new NullPointerTester();
        CacheBuilder<Object, Object> builder = CacheBuilder.newBuilder();
        tester.testAllPublicInstanceMethods(builder);
      }
    
      @GwtIncompatible // CacheTesting
      public void testSizingDefaults() {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 03 20:10:02 UTC 2023
    - 23.2K bytes
    - Viewed (0)
  8. src/log/slog/handler_test.go

    		line := strconv.Itoa(r.source().Line)
    		r.AddAttrs(test.attrs...)
    		var buf bytes.Buffer
    		opts := HandlerOptions{ReplaceAttr: test.replace, AddSource: test.addSource}
    		t.Run(test.name, func(t *testing.T) {
    			for _, handler := range []struct {
    				name string
    				h    Handler
    				want string
    			}{
    				{"text", NewTextHandler(&buf, &opts), test.wantText},
    				{"json", NewJSONHandler(&buf, &opts), test.wantJSON},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 02 13:57:53 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/SpliteratorTester.java

    import java.util.Spliterator.OfPrimitive;
    import java.util.function.Consumer;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Tester for {@code Spliterator} implementations.
     *
     * @since 21.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    public final class SpliteratorTester<E extends @Nullable Object> {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 18:19:31 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        // Test compat address.
        testIp = (Inet6Address) InetAddresses.forString("::1.2.3.4");
        assertTrue(InetAddresses.hasEmbeddedIPv4ClientAddress(testIp));
        InetAddress ipv4 = InetAddresses.forString("1.2.3.4");
        assertEquals(ipv4, InetAddresses.getEmbeddedIPv4ClientAddress(testIp));
    
        // Test 6to4 address.
        testIp = (Inet6Address) InetAddresses.forString("2002:0102:0304::1");
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri May 24 16:44:05 UTC 2024
    - 35.3K bytes
    - Viewed (0)
Back to top