Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TestWriteTo (0.07 sec)

  1. src/archive/tar/reader_test.go

    			wantStr string
    			wantErr error
    		}
    		testWriteTo struct { // WriteTo(testFile{ops}) == (wantCnt, wantErr)
    			ops     fileOps
    			wantCnt int64
    			wantErr error
    		}
    		testRemaining struct { // logicalRemaining() == wantLCnt, physicalRemaining() == wantPCnt
    			wantLCnt int64
    			wantPCnt int64
    		}
    		testFnc any // testRead | testWriteTo | testRemaining
    	)
    
    	type (
    		makeReg struct {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 03 15:48:09 UTC 2024
    - 46.9K bytes
    - Viewed (0)
  2. src/bytes/buffer_test.go

    		}
    	}()
    
    	b.ReadFrom(new(negativeReader))
    }
    
    func TestWriteTo(t *testing.T) {
    	var buf Buffer
    	for i := 3; i < 30; i += 3 {
    		s := fillBytes(t, "TestWriteTo (1)", &buf, "", 5, testBytes[:len(testBytes)/i])
    		var b Buffer
    		buf.WriteTo(&b)
    		empty(t, "TestWriteTo (2)", &b, s, make([]byte, len(testString)))
    	}
    }
    
    func TestWriteAppend(t *testing.T) {
    	var got Buffer
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Sep 03 20:55:15 UTC 2024
    - 18.6K bytes
    - Viewed (0)
Back to top