Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 221 for cover (0.12 sec)

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

    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link FluentFuture}. The tests cover only the basics for the API. The actual logic is
     * tested in {@link FuturesTest}.
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible(emulated = true)
    public class FluentFutureTest extends TestCase {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FluentFutureTest.java

    import java.util.concurrent.ScheduledExecutorService;
    import java.util.concurrent.TimeoutException;
    import junit.framework.TestCase;
    
    /**
     * Tests for {@link FluentFuture}. The tests cover only the basics for the API. The actual logic is
     * tested in {@link FuturesTest}.
     */
    @ElementTypesAreNonnullByDefault
    @GwtCompatible(emulated = true)
    public class FluentFutureTest extends TestCase {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 5.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/UnsignedBytes.java

                int n = Long.numberOfTrailingZeros(lw ^ rw) & ~0x7;
                return ((int) ((lw >>> n) & UNSIGNED_MASK)) - ((int) ((rw >>> n) & UNSIGNED_MASK));
              }
            }
    
            // The epilogue to cover the last (minLength % stride) elements.
            for (; i < minLength; i++) {
              int result = UnsignedBytes.compare(left[i], right[i]);
              if (result != 0) {
                return result;
              }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 17:40:56 GMT 2024
    - 18.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/ImmutableList.java

      static <E> ImmutableList<E> asImmutableList(Object[] elements) {
        return asImmutableList(elements, elements.length);
      }
    
      /**
       * Views the array as an immutable list. Copies if the specified range does not cover the complete
       * array. Does not check for nulls.
       */
      static <E> ImmutableList<E> asImmutableList(@Nullable Object[] elements, int length) {
        switch (length) {
          case 0:
            return of();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 30K bytes
    - Viewed (1)
  5. guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       Sometimes there are multiple tests per JSR166 method when the different "normal" behaviors
     *       differ significantly. And sometimes testcases cover multiple methods when they cannot be
     *       tested in isolation.
     *   <li>The documentation style for testcases is to provide as javadoc a simple sentence or two
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.7K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/math/IntMathTest.java

      public void testLog10TrivialOnPowerOfTen() {
        int x = 1000000;
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(6, IntMath.log10(x, mode));
        }
      }
    
      // Simple test to cover sqrt(0) for all types and all modes.
      @GwtIncompatible // sqrt
      public void testSqrtZeroAlwaysZero() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(0, IntMath.sqrt(0, mode));
        }
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/JSR166TestCase.java

     *       Sometimes there are multiple tests per JSR166 method when the different "normal" behaviors
     *       differ significantly. And sometimes testcases cover multiple methods when they cannot be
     *       tested in isolation.
     *   <li>The documentation style for testcases is to provide as javadoc a simple sentence or two
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 37.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/math/IntMathTest.java

      public void testLog10TrivialOnPowerOfTen() {
        int x = 1000000;
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(6, IntMath.log10(x, mode));
        }
      }
    
      // Simple test to cover sqrt(0) for all types and all modes.
      @GwtIncompatible // sqrt
      public void testSqrtZeroAlwaysZero() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertEquals(0, IntMath.sqrt(0, mode));
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/ChecksumHashFunctionTest.java

        assertHash32(0x7A2D6005, CRC_32, "hello wo");
        assertHash32(0x1C192672, CRC_32, "hello wor");
        assertHash32(0x414FA339, CRC_32, "The quick brown fox jumps over the lazy dog");
        assertHash32(0x4400B5BC, CRC_32, "The quick brown fox jumps over the lazy cog");
      }
    
      public void testAdler32_knownValues() throws Exception {
        assertHash32(0x041701A6, ADLER_32, "hell");
        assertHash32(0x062C0215, ADLER_32, "hello");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Jan 30 14:33:12 GMT 2018
    - 3.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
        assertThrows(IllegalStateException.class, () -> hasher.putInt(42));
      }
    
      public void testHashTwice() {
        Hasher hasher = Hashing.hmacMd5(MD5_KEY).newHasher();
    
        assertEquals(
            "9753980fe94daa8ecaa82216519393a9",
            hasher.putString("The quick brown fox jumps over the lazy dog", UTF_8).hash().toString());
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
Back to top