Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 314 for source (0.15 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 Apr 26 12:43:10 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. android/guava-tests/test/com/google/common/io/CharSourceTest.java

        assertEquals(STRING.length(), source.copyTo(sink));
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
        assertTrue(sink.wasStreamOpened() && sink.wasStreamClosed());
    
        assertEquals(STRING, sink.getString());
      }
    
      public void testRead_toString() throws IOException {
        assertEquals(STRING, source.read());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 12K bytes
    - Viewed (0)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        List<ByteSource> sources = Lists.newArrayList();
        int start = 0;
        for (Integer span : spans) {
          sources.add(newByteSource(start, span));
          start += span;
        }
        ByteSource joined = ByteSource.concat(sources);
        assertTrue(newByteSource(0, start).contentEquals(joined));
      }
    
      public void testReadSingleByte() throws Exception {
        ByteSource source = newByteSource(0, 10);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.6K bytes
    - Viewed (0)
Back to top