Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. src/bufio/bufio_test.go

    				}
    				t.Logf("read(%d) = %q, %v", len(p), string(p[:n]), err)
    			}
    			want("abc", nil)
    			want("", nil)
    			want("def", nil)
    			want("", io.EOF)
    		})
    	}
    }
    
    func TestReaderReset(t *testing.T) {
    	checkAll := func(r *Reader, want string) {
    		t.Helper()
    		all, err := io.ReadAll(r)
    		if err != nil {
    			t.Fatal(err)
    		}
    		if string(all) != want {
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Nov 01 21:52:12 UTC 2024
    - 51.6K bytes
    - Viewed (0)
Back to top