Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 314 for source (0.18 sec)

  1. android/guava-tests/test/com/google/common/io/ByteSourceTester.java

            IllegalArgumentException.class,
            () -> source.slice(0, -1));
      }
    
      // Test that you can not expand the readable data in a previously sliced ByteSource.
      public void testSlice_constrainedRange() throws IOException {
        long size = source.read().length;
        if (size >= 2) {
          ByteSource sliced = source.slice(1, size - 2);
          assertEquals(size - 2, sliced.read().length);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 8.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java

        assertTrue(Arrays.equals(data, source.read()));
        out.reset();
      }
    
      public void testReset() throws Exception {
        byte[] data = newPreFilledByteArray(100);
        FileBackedOutputStream out = new FileBackedOutputStream(Integer.MAX_VALUE);
        ByteSource source = out.asByteSource();
    
        out.write(data);
        assertTrue(Arrays.equals(data, source.read()));
    
        out.reset();
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 5.5K bytes
    - Viewed (0)
  3. guava-tests/pom.xml

            <executions>
              <execution>
                <id>add-benchmark-sources</id>
                <phase>generate-test-sources</phase>
                <goals><goal>add-test-source</goal></goals>
                <configuration>
                  <sources>
                    <source>benchmark</source>
                  </sources>
                </configuration>
              </execution>
            </executions>
          </plugin>
    XML
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Aug 07 19:01:53 GMT 2023
    - 4.1K bytes
    - Viewed (0)
  4. guava-tests/benchmark/com/google/common/math/IntMathBenchmark.java

          exponent[i] = randomExponent();
          factorial[i] = RANDOM_SOURCE.nextInt(50);
          binomial[i] = RANDOM_SOURCE.nextInt(factorial[i] + 1);
          positive[i] = randomPositiveBigInteger(Integer.SIZE - 1).intValue();
          nonnegative[i] = randomNonNegativeBigInteger(Integer.SIZE - 1).intValue();
          ints[i] = RANDOM_SOURCE.nextInt();
        }
      }
    
      @Benchmark
      int pow(int reps) {
        int tmp = 0;
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.2K bytes
    - Viewed (0)
  5. guava-gwt/src/com/google/common/util/concurrent/Concurrent.gwt.xml

    <module>
    <source path="">
      <!-- Hack to keep collect from hiding collect.testing supersource: -->
      <exclude name="**/testing/**"/>
    </source>
    
    <!--
        We used to set this only for packages that had manual supersource. That
        worked everywhere that I know of except for one place: when running the GWT
        util.concurrent tests under Guava.
    
        The problem is that GWT responds poorly to two .gwt.xml files in the same
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Jul 19 04:29:50 GMT 2022
    - 1.5K bytes
    - Viewed (0)
  6. guava-gwt/src/com/google/common/cache/Cache.gwt.xml

    <module>
    <source path="">
      <!-- Hack to keep collect from hiding collect.testing supersource: -->
      <exclude name="**/testing/**"/>
    </source>
    
    <!--
        We used to set this only for packages that had manual supersource. That
        worked everywhere that I know of except for one place: when running the GWT
        util.concurrent tests under Guava.
    
        The problem is that GWT responds poorly to two .gwt.xml files in the same
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 06 15:30:58 GMT 2022
    - 1.6K bytes
    - Viewed (0)
  7. guava-gwt/test/com/google/common/collect/testing/google/Google.gwt.xml

    <module>
    <source path="">
      <!-- Hack to keep collect from hiding collect.testing supersource: -->
      <exclude name="**/testing/**"/>
    </source>
    
    <!--
        We used to set this only for packages that had manual supersource. That
        worked everywhere that I know of except for one place: when running the GWT
        util.concurrent tests under Guava.
    
        The problem is that GWT responds poorly to two .gwt.xml files in the same
    XML
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Jan 06 15:30:58 GMT 2022
    - 1.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<Integer> source = Iterators.singletonIterator(1);
        try {
          Iterators.partition(source, 0);
          fail();
        } catch (IllegalArgumentException expected) {
        }
      }
    
      public void testPartition_empty() {
        Iterator<Integer> source = Iterators.emptyIterator();
        Iterator<List<Integer>> partitions = Iterators.partition(source, 1);
        assertFalse(partitions.hasNext());
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/ByteSourceTest.java

      }
    
      public void testContentEquals() throws IOException {
        assertTrue(source.contentEquals(source));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        ByteSource equalSource = new TestByteSource(bytes);
        assertTrue(source.contentEquals(equalSource));
        assertTrue(new TestByteSource(bytes).contentEquals(source));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/ImmutableSortedMapTest.java

          for (int j = 0; j < i; j++) {
            Map<Integer, @Nullable Integer> source = new TreeMap<>();
            for (int k = 0; k < i; k++) {
              source.put(k, k);
            }
            source.put(j, null);
            try {
              ImmutableSortedMap.copyOf((Map<Integer, Integer>) source);
              fail("Expected NullPointerException in copyOf(" + source + ")");
            } catch (NullPointerException expected) {
            }
          }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 28.1K bytes
    - Viewed (0)
Back to top