Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/bytes/buffer_test.go

    	}
    	check(t, "TestLargeByteReads (3)", &buf, "")
    }
    
    func TestMixedReadsAndWrites(t *testing.T) {
    	var buf Buffer
    	s := ""
    	for i := 0; i < 50; i++ {
    		wlen := rand.Intn(len(testString))
    		if i%2 == 0 {
    			s = fillString(t, "TestMixedReadsAndWrites (1)", &buf, s, 1, testString[0:wlen])
    		} else {
    			s = fillBytes(t, "TestMixedReadsAndWrites (1)", &buf, s, 1, testBytes[0:wlen])
    		}
    
    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