Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 265 for EXPECT (0.04 sec)

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

    1. }
    2. }
    3. }
    4.  
    5. // Relies on the correctness of isPowerOfTwo(int).
    6. public void testLog2Exact() {
    7. for (int x : POSITIVE_INTEGER_CANDIDATES) {
    8. // We only expect an exception if x was not a power of 2.
    9. boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
    10. try {
    11. assertEquals(x, 1 << IntMath.log2(x, UNNECESSARY));
    12. assertTrue(isPowerOf2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CompactLinkedHashMap.java

    1. * <i>should</i> hold {@code expectedSize} elements without rebuilding internal data structures.
    2. *
    3. * @param expectedSize the number of elements you expect to add to the returned set
    4. * @return a new, empty {@code CompactLinkedHashMap} with enough capacity to hold {@code
    5. * expectedSize} elements without resizing
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  3. internal/grid/muxserver.go

    1. }
    2. if !m.checkSeq(msg.Seq) {
    3. return
    4. }
    5. m.recvMu.Lock()
    6. defer m.recvMu.Unlock()
    7. if cap(m.inbound) == 0 {
    8. m.disconnect("did not expect inbound message", true)
    9. return
    10. }
    11. // Note, on EOF no value can be sent.
    12. if msg.Flags&FlagEOF != 0 {
    13. if len(msg.Payload) > 0 {
    14. gridLogIf(m.ctx, fmt.Errorf("muxServer: EOF message with payload"))
    15. }
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jun 07 15:51:52 UTC 2024
    - 9.7K bytes
    - Viewed (0)
  4. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

    1. * in com.google.guava:guava differs from the "frozen" copy in the listenablefuture artifact. This
    2. * could in principle cause problems for some users. Still, we expect that the benefits of the
    3. * nullness annotations in particular will outweigh the costs. (And it's worth noting that we have
    4. * released multiple ListenableFuture.class files that are not byte-for-byte compatible even from
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
  5. integration-tests/gradle/gradlew

    1. # * DEFAULT_JVM_OPTS, JAVA_OPTS, JAVA_OPTS, and optsEnvironmentVar are not allowed to contain shell fragments,
    2. # and any embedded shellness will be escaped.
    3. # * For example: A user cannot expect ${Hostname} to be expanded, as it is an environment variable and will be
    4. # treated as '${Hostname}' itself on the command line.
    5.  
    6. set -- \
    7. "-Dorg.gradle.appname=$APP_BASE_NAME" \
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 31 19:07:19 UTC 2023
    - 8.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/util/concurrent/ListenableFuture.java

    1. * in com.google.guava:guava differs from the "frozen" copy in the listenablefuture artifact. This
    2. * could in principle cause problems for some users. Still, we expect that the benefits of the
    3. * nullness annotations in particular will outweigh the costs. (And it's worth noting that we have
    4. * released multiple ListenableFuture.class files that are not byte-for-byte compatible even from
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jun 26 21:13:41 UTC 2023
    - 8K bytes
    - Viewed (0)
  7. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskRunner.kt

    1. private var coordinatorWaiting = false
    2. private var coordinatorWakeUpAt = 0L
    3.  
    4. /**
    5. * When we need a new thread to run tasks, we call [Backend.execute]. A few microseconds later we
    6. * expect a newly-started thread to call [Runnable.run]. We shouldn't request new threads until
    7. * the already-requested ones are in service, otherwise we might create more threads than we need.
    8. *
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 29 00:33:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

    1. * Reference iterator returned a value, so we should expect the
    2. * same value from the target
    3. */
    4. assertEquals(referenceReturnValue, targetReturnValue);
    5.  
    6. return;
    7. }
    8.  
    9. if (targetException == null) {
    10. fail("Target failed to throw " + referenceException);
    11. }
    12.  
    13. /*
    14. * Reference iterator threw an exception, so we should expect an acceptable
    15. * exception from the target.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/ImmutableCollection.java

    1. * collection. Undefined behavior and bugs will result. It's generally best to avoid using
    2. * mutable objects as elements at all, as many users may expect your "immutable" object to be
    3. * <i>deeply</i> immutable.
    4. * </ul>
    5. *
    6. * <h4>Performance notes</h4>
    7. *
    8. * <ul>
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Aug 12 16:59:15 UTC 2024
    - 18.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/IntMathTest.java

    1. }
    2. }
    3. }
    4.  
    5. // Relies on the correctness of isPowerOfTwo(int).
    6. public void testLog2Exact() {
    7. for (int x : POSITIVE_INTEGER_CANDIDATES) {
    8. // We only expect an exception if x was not a power of 2.
    9. boolean isPowerOf2 = IntMath.isPowerOfTwo(x);
    10. try {
    11. assertEquals(x, 1 << IntMath.log2(x, UNNECESSARY));
    12. assertTrue(isPowerOf2);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top