Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 52 for simulate (0.2 sec)

  1. guava-tests/test/com/google/common/collect/ComparisonChainTest.java

              .add("anEnum", anEnum)
              .toString();
        }
      }
    
      /** Validates that the Comparator equivalent we document is correct. */
      @J2ktIncompatible // TODO b/315311435 - J2kt cannot emulate Comparator<C>.<U>thenComparing()
      public void testComparatorEquivalent() {
        Comparator<Foo> comparatorUsingComparisonChain =
            (a, b) ->
                ComparisonChain.start()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 27 13:27:08 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(greater + ".compareTo(" + t + ')', greater.compareTo(t) > 0);
            assertFalse(greater.equals(t));
          }
        }
      }
    
      /**
       * Returns a collection that simulates concurrent modification by having its size method return
       * incorrect values. This is useful for testing methods that must treat the return value from
       * size() as a hint only.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/io/Closer.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
     * >try-with-resources</a> statement in JDK6-compatible code. Code using this should be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/ServiceManagerTest.java

        // ensure that if weird things happen during construction then we get exceptions.
        final NoOpService service1 = new NoOpService();
        // This service will start service1 when addListener is called.  This simulates service1 being
        // started asynchronously.
        Service service2 =
            new Service() {
              final NoOpService delegate = new NoOpService();
    
              @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:51:36 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  5. guava/src/com/google/common/io/Closer.java

    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A {@link Closeable} that collects {@code Closeable} resources and closes them all when it is
     * {@linkplain #close closed}. This was intended to approximately emulate the behavior of Java 7's
     * <a href="http://docs.oracle.com/javase/tutorial/essential/exceptions/tryResourceClose.html"
     * >try-with-resources</a> statement in JDK6-compatible code. Code using this should be
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue May 07 15:26:58 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/Helpers.java

            assertTrue(greater + ".compareTo(" + t + ')', greater.compareTo(t) > 0);
            assertFalse(greater.equals(t));
          }
        }
      }
    
      /**
       * Returns a collection that simulates concurrent modification by having its size method return
       * incorrect values. This is useful for testing methods that must treat the return value from
       * size() as a hint only.
       *
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  7. guava/src/com/google/common/reflect/Invokable.java

      public final boolean trySetAccessible() {
        // We can't call accessibleObject.trySetAccessible since that was added in Java 9 and this code
        // should work on Java 8. So we emulate it this way.
        try {
          accessibleObject.setAccessible(true);
          return true;
        } catch (Exception e) { // sneaky checked exception
          return false;
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Dec 14 20:35:03 UTC 2023
    - 19.6K bytes
    - Viewed (0)
  8. RELEASE.md

    *   `tf.lite`:
    
        *   `tf.quantization.quantize_and_dequantize_v2` has been introduced, which
            updates the gradient definition for quantization which is outside the
            range to be 0. To simulate the V1 the behavior of
            `tf.quantization.quantize_and_dequantize(...)` use
            `tf.grad_pass_through(tf.quantization.quantize_and_dequantize_v2)(...)`.
    
    *   Building TensorFlow:
    
    Registered: Tue Nov 05 12:39:12 UTC 2024
    - Last Modified: Tue Oct 22 14:33:53 UTC 2024
    - 735.3K bytes
    - Viewed (0)
  9. cni/pkg/nodeagent/informers_test.go

    	mt.Assert(EventTotals.Name(), map[string]string{"type": "update"}, monitortest.AtLeast(4))
    
    	waitForMockCalls()
    
    	assertPodNotAnnotated(t, client, pod)
    
    	// patch a test label to emulate a POD update event
    	_, err = client.Kube().CoreV1().Pods(pod.Namespace).Patch(ctx, pod.Name,
    		types.MergePatchType, []byte(`{"metadata":{"labels":{"test":"update"}}}`), metav1.PatchOptions{})
    	assert.NoError(t, err)
    
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Wed Oct 09 16:05:45 UTC 2024
    - 22.1K bytes
    - Viewed (0)
  10. src/archive/tar/reader_test.go

    		file: "testdata/pax-nul-xattrs.tar",
    		err:  ErrHeader,
    	}, {
    		// BSD tar v3.1.2 rejects a PAX path with NUL in the value, while
    		// GNU tar v1.27.1 simply truncates at first NUL.
    		// We emulate the behavior of BSD since it is strange doing NUL
    		// truncations since PAX records are length-prefix strings instead
    		// of NUL-terminated C-strings.
    		file: "testdata/pax-nul-path.tar",
    		err:  ErrHeader,
    	}, {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
Back to top