Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMultiWriterError (0.16 sec)

  1. src/io/multi_test.go

    		t.Errorf("multiWriter did not flatten chained multiWriters: expected writeDepth %d, got %d",
    			4*(myDepth+2), writeDepth)
    	}
    }
    
    func TestMultiWriterError(t *testing.T) {
    	f1 := writerFunc(func(p []byte) (int, error) {
    		return len(p) / 2, ErrShortWrite
    	})
    	f2 := writerFunc(func(p []byte) (int, error) {
    		t.Errorf("MultiWriter called f2.Write")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 15:49:32 UTC 2022
    - 10K bytes
    - Viewed (0)
Back to top