Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testReadLine (0.09 sec)

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

        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(buf));
        assertThrows(EOFException.class, () -> in.readUnsignedShort());
      }
    
      @SuppressWarnings("DoNotCall")
      public void testReadLine() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        UnsupportedOperationException expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/io/LittleEndianDataInputStreamTest.java

        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(buf));
        assertThrows(EOFException.class, () -> in.readUnsignedShort());
      }
    
      @SuppressWarnings("DoNotCall")
      public void testReadLine() throws IOException {
        DataInput in = new LittleEndianDataInputStream(new ByteArrayInputStream(data));
        UnsupportedOperationException expected =
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Sep 06 17:04:31 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  3. src/bufio/bufio_test.go

    		}
    		if done != len(testOutput) {
    			t.Errorf("ReadLine didn't return everything: got: %d, want: %d (stride: %d)", done, len(testOutput), stride)
    		}
    	}
    }
    
    func TestReadLine(t *testing.T) {
    	testReadLine(t, testInput)
    	testReadLine(t, testInputrn)
    }
    
    func TestLineTooLong(t *testing.T) {
    	data := make([]byte, 0)
    	for i := 0; i < minReadBufferSize*5/2; i++ {
    		data = append(data, '0'+byte(i%10))
    	}
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top