Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReaderWriteToErrors (0.08 sec)

  1. src/bufio/bufio_test.go

    	{1, 0, nil, io.ErrClosedPipe, io.ErrClosedPipe},
    	{0, 1, io.ErrClosedPipe, nil, io.ErrClosedPipe},
    	{0, 0, io.ErrUnexpectedEOF, io.ErrClosedPipe, io.ErrClosedPipe},
    	{0, 1, io.EOF, nil, nil},
    }
    
    func TestReaderWriteToErrors(t *testing.T) {
    	for i, rw := range errorWriterToTests {
    		r := NewReader(rw)
    		if _, err := r.WriteTo(rw); err != rw.expected {
    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