Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 14 of 14 for ABCDEFGHIJKLMNOPQRSTUVWXYZ (0.13 sec)

  1. src/bufio/bufio_test.go

    	}{
    		{
    			name:         "normal case",
    			r:            strings.NewReader("abcdefghijklmnopqrstuvwxyz"),
    			peekSize:     16,
    			n:            6,
    			want:         6,
    			wantBuffered: 10,
    		},
    		{
    			name:         "discard causing read",
    			r:            strings.NewReader("abcdefghijklmnopqrstuvwxyz"),
    			n:            6,
    			want:         6,
    			wantBuffered: 10,
    		},
    		{
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        testMarkAndReset(TransferKind.END_OF_STREAM)
      }
    
      private fun testMarkAndReset(transferKind: TransferKind) {
        val builder = MockResponse.Builder()
        transferKind.setBody(builder, "ABCDEFGHIJKLMNOPQRSTUVWXYZ", 1024)
        server.enqueue(builder.build())
        server.enqueue(builder.build())
        val inputStream = getResponse(newRequest("/")).body.byteStream()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  3. src/bufio/scan_test.go

    			panic("didn't get enough data")
    		}
    		if numSplits >= okCount {
    			return 0, nil, testError
    		}
    		numSplits++
    		return 1, data[0:1], nil
    	}
    	// Read the data.
    	const text = "abcdefghijklmnopqrstuvwxyz"
    	buf := strings.NewReader(text)
    	s := NewScanner(&slowReader{1, buf})
    	s.Split(errorSplit)
    	var i int
    	for i = 0; s.Scan(); i++ {
    		if len(s.Bytes()) != 1 || text[i] != s.Bytes()[0] {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Sep 22 16:22:42 UTC 2023
    - 14.3K bytes
    - Viewed (0)
  4. src/bytes/buffer_test.go

    		t.Fatal("ReadByte at EOF: got no error")
    	}
    	if err := b.UnreadByte(); err == nil {
    		t.Fatal("UnreadByte after ReadByte at EOF: got no error")
    	}
    
    	// check not at EOF
    	b.WriteString("abcdefghijklmnopqrstuvwxyz")
    
    	// after unsuccessful read
    	if n, err := b.Read(nil); n != 0 || err != nil {
    		t.Fatalf("Read(nil) = %d,%v; want 0,nil", n, err)
    	}
    	if err := b.UnreadByte(); err == nil {
    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