Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestReaderDiscard (0.1 sec)

  1. src/bufio/bufio_test.go

    	}
    	w.Reset(&buf5)
    	w2.Reset(w)
    	w2.WriteString("recur2")
    	w2.Flush()
    	if buf5.String() != "recur2" {
    		t.Errorf("buf5 = %q, want %q", buf5.String(), "recur2")
    	}
    }
    
    func TestReaderDiscard(t *testing.T) {
    	tests := []struct {
    		name     string
    		r        io.Reader
    		bufSize  int // 0 means 16
    		peekSize int
    
    		n int // input to Discard
    
    		want    int   // from Discard
    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