Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestLineTooLong (0.11 sec)

  1. src/bufio/bufio_test.go

    		}
    	}
    }
    
    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))
    	}
    	buf := bytes.NewReader(data)
    	l := NewReaderSize(buf, minReadBufferSize)
    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