Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestReadLine (0.05 sec)

  1. 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 Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. 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 Sep 09 11:13:09 UTC 2025
    - Last Modified: Fri Feb 07 01:08:54 UTC 2025
    - 51.6K bytes
    - Viewed (0)
Back to top