Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for TestLimit (0.13 seconds)

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

        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100));
      }
    
      public void testLimit() throws Exception {
        byte[] big = newPreFilledByteArray(5);
        InputStream bin = new ByteArrayInputStream(big);
        InputStream lin = ByteStreams.limit(bin, 2);
    
        // also test available
        lin.mark(2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/io/ByteStreamsTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 2));
        assertThrows(IndexOutOfBoundsException.class, () -> nos.write(tenBytes, 9, 100));
      }
    
      public void testLimit() throws Exception {
        byte[] big = newPreFilledByteArray(5);
        InputStream bin = new ByteArrayInputStream(big);
        InputStream lin = ByteStreams.limit(bin, 2);
    
        // also test available
        lin.mark(2);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 17 19:26:39 GMT 2026
    - 22K bytes
    - Click Count (0)
  3. guava-tests/test/com/google/common/collect/FluentIterableTest.java

      }
    
      public void testSkip_illegalArgument() {
        assertThrows(
            IllegalArgumentException.class, () -> FluentIterable.from(asList("a", "b", "c")).skip(-1));
      }
    
      public void testLimit() {
        Iterable<String> iterable = Lists.newArrayList("foo", "bar", "baz");
        FluentIterable<String> limited = FluentIterable.from(iterable).limit(2);
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 31.2K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertThat(Iterables.toString(list)).isEqualTo("[]");
    
        list = newArrayList("yam", "bam", "jam", "ham");
        assertThat(Iterables.toString(list)).isEqualTo("[yam, bam, jam, ham]");
      }
    
      public void testLimit() {
        Iterable<String> iterable = newArrayList("foo", "bar", "baz");
        Iterable<String> limited = Iterables.limit(iterable, 2);
    
        List<String> expected = ImmutableList.of("foo", "bar");
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 47.5K bytes
    - Click Count (0)
Back to Top