Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for Networks (0.14 sec)

  1. src/bufio/bufio_test.go

    		}
    	}
    }
    
    // TestWriterReadFromCounts tests that using io.Copy to copy into a
    // bufio.Writer does not prematurely flush the buffer. For example, when
    // buffering writes to a network socket, excessive network writes should be
    // avoided.
    func TestWriterReadFromCounts(t *testing.T) {
    	var w0 writeCountingDiscard
    	b0 := NewWriterSize(&w0, 1234)
    	b0.WriteString(strings.Repeat("x", 1000))
    	if w0 != 0 {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Feb 10 18:56:01 GMT 2023
    - 51.5K bytes
    - Viewed (0)
Back to top