Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for MultiReader (0.07 sec)

  1. src/bufio/bufio_test.go

    	}
    }
    
    func TestReadZero(t *testing.T) {
    	for _, size := range []int{100, 2} {
    		t.Run(fmt.Sprintf("bufsize=%d", size), func(t *testing.T) {
    			r := io.MultiReader(strings.NewReader("abc"), &emptyThenNonEmptyReader{r: strings.NewReader("def"), n: 1})
    			br := NewReaderSize(r, size)
    			want := func(s string, wantErr error) {
    				p := make([]byte, 50)
    				n, err := br.Read(p)
    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