Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for testReadArray (0.21 sec)

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

      }
    
      public void testReadSingleByte() throws IOException {
        assertEquals(0, counter.getCount());
        assertEquals(0, counter.read());
        assertEquals(1, counter.getCount());
      }
    
      public void testReadArray() throws IOException {
        assertEquals(10, counter.read(new byte[10]));
        assertEquals(10, counter.getCount());
      }
    
      public void testReadArrayRange() throws IOException {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/CountingInputStreamTest.java

      }
    
      public void testReadSingleByte() throws IOException {
        assertEquals(0, counter.getCount());
        assertEquals(0, counter.read());
        assertEquals(1, counter.getCount());
      }
    
      public void testReadArray() throws IOException {
        assertEquals(10, counter.read(new byte[10]));
        assertEquals(10, counter.getCount());
      }
    
      public void testReadArrayRange() throws IOException {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        // https://github.com/google/guava/issues/2996
        // no data, just testing that there's no StackOverflowException
        assertEquals(-1, tenMillionEmptySources().read());
      }
    
      public void testReadArray_noStackOverflow() throws IOException {
        // https://github.com/google/guava/issues/2996
        // no data, just testing that there's no StackOverflowException
        assertEquals(-1, tenMillionEmptySources().read(new byte[1]));
    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)
  4. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

        // https://github.com/google/guava/issues/2996
        // no data, just testing that there's no StackOverflowException
        assertEquals(-1, tenMillionEmptySources().read());
      }
    
      public void testReadArray_noStackOverflow() throws IOException {
        // https://github.com/google/guava/issues/2996
        // no data, just testing that there's no StackOverflowException
        assertEquals(-1, tenMillionEmptySources().read(new byte[1]));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 4.6K bytes
    - Viewed (0)
Back to top