Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,095 for for (0.17 sec)

  1. android/guava-tests/test/com/google/common/math/LongMathTest.java

      public void testZeroDivIsAlwaysZero() {
        for (long q : NONZERO_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertEquals(0L, LongMath.divide(0L, q, mode));
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testDivByZeroAlwaysFails() {
        for (long p : ALL_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 20:15:57 GMT 2024
    - 32.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AtomicDoubleTest.java

        double prev = Math.E;
        AtomicDouble at = new AtomicDouble(prev);
        for (double x : VALUES) {
          assertBitEquals(prev, at.getAndSet(x));
          prev = x;
        }
      }
    
      /** getAndAdd returns previous value and adds given value */
      public void testGetAndAdd() {
        for (double x : VALUES) {
          for (double y : VALUES) {
            AtomicDouble a = new AtomicDouble(x);
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 09 22:57:07 GMT 2022
    - 10.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        for (double inf : INFINITIES) {
          for (double tolerance : FINITE_TOLERANCE_CANDIDATES) {
            assertTrue(DoubleMath.fuzzyEquals(inf, inf, tolerance));
            assertFalse(DoubleMath.fuzzyEquals(inf, -inf, tolerance));
          }
        }
      }
    
      public void testFuzzyEqualsInfiniteTolerance() {
        for (double a : DOUBLE_CANDIDATES_EXCEPT_NAN) {
          for (double b : DOUBLE_CANDIDATES_EXCEPT_NAN) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

      }
    
      public void testAddManyPairs() {
        for (int aLow = 0; aLow < 6; aLow++) {
          for (int aHigh = 0; aHigh < 6; aHigh++) {
            for (BoundType aLowType : BoundType.values()) {
              for (BoundType aHighType : BoundType.values()) {
                if ((aLow == aHigh && aLowType == OPEN && aHighType == OPEN) || aLow > aHigh) {
                  continue;
                }
                for (int bLow = 0; bLow < 6; bLow++) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Dec 16 19:54:45 GMT 2020
    - 24.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/hash/BloomFilterTest.java

        for (int i = 0; i < numInsertions * 2; i += 2) {
          bf.put(Integer.toString(i));
        }
        assertApproximateElementCountGuess(bf, numInsertions);
    
        // Assert that the BF "might" have all of the even numbers.
        for (int i = 0; i < numInsertions * 2; i += 2) {
          assertTrue(bf.mightContain(Integer.toString(i)));
        }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 09 22:49:56 GMT 2023
    - 21.3K bytes
    - Viewed (0)
  6. cmd/peer-s3-client.go

    	for idx, client := range sys.peerClients {
    		client := client
    		g.Go(func() error {
    			if client == nil {
    				return errPeerOffline
    			}
    			return client.MakeBucket(ctx, bucket, opts)
    		}, idx)
    	}
    	errs := g.Wait()
    
    	for poolIdx := 0; poolIdx < sys.poolsCount; poolIdx++ {
    		perPoolErrs := make([]error, 0, len(sys.peerClients))
    		for i, client := range sys.peerClients {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.8K bytes
    - Viewed (0)
  7. cmd/data-usage-cache_gen_test.go

    	v := allTierStats{}
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		v.MarshalMsg(nil)
    	}
    }
    
    func BenchmarkAppendMsgallTierStats(b *testing.B) {
    	v := allTierStats{}
    	bts := make([]byte, 0, v.Msgsize())
    	bts, _ = v.MarshalMsg(bts[0:0])
    	b.SetBytes(int64(len(bts)))
    	b.ReportAllocs()
    	b.ResetTimer()
    	for i := 0; i < b.N; i++ {
    		bts, _ = v.MarshalMsg(bts[0:0])
    	}
    }
    
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Sat Jan 13 07:51:08 GMT 2024
    - 28.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/cache/EmptyCachesTest.java

     *
     * @author mike nonemacher
     */
    
    public class EmptyCachesTest extends TestCase {
    
      public void testEmpty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          checkEmpty(cache);
        }
      }
    
    
      public void testInvalidate_empty() {
        for (LoadingCache<Object, Object> cache : caches()) {
          cache.getUnchecked("a");
          cache.getUnchecked("b");
          cache.invalidate("a");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 11.5K bytes
    - Viewed (0)
  9. common-protos/k8s.io/api/autoscaling/v2beta2/generated.proto

      // periodSeconds specifies the window of time for which the policy should hold true.
      // PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min).
      optional int32 periodSeconds = 3;
    }
    
    // HPAScalingRules configures the scaling behavior for one direction.
    // These Rules are applied after calculating DesiredReplicas from metrics for the HPA.
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 21K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/net/InternetDomainName.java

       * including if it is a public suffix itself. For example, returns {@code true} for {@code
       * www.google.com}, {@code foo.co.uk} and {@code com}, but not for {@code invalid} or {@code
       * google.invalid}. This is the recommended method for determining whether a domain is potentially
       * an addressable host.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 05 20:47:23 GMT 2024
    - 28K bytes
    - Viewed (0)
Back to top