const N …
var testString …
var testBytes …
type negativeReader …
func (r *negativeReader) Read([]byte) (int, error) { … }
func init() { … }
func check(t *testing.T, testname string, buf *Buffer, s string) { … }
func fillString(t *testing.T, testname string, buf *Buffer, s string, n int, fus string) string { … }
func fillBytes(t *testing.T, testname string, buf *Buffer, s string, n int, fub []byte) string { … }
func TestNewBuffer(t *testing.T) { … }
var buf …
func TestNewBufferShallow(t *testing.T) { … }
func TestNewBufferString(t *testing.T) { … }
func empty(t *testing.T, testname string, buf *Buffer, s string, fub []byte) { … }
func TestBasicOperations(t *testing.T) { … }
func TestLargeStringWrites(t *testing.T) { … }
func TestLargeByteWrites(t *testing.T) { … }
func TestLargeStringReads(t *testing.T) { … }
func TestLargeByteReads(t *testing.T) { … }
func TestMixedReadsAndWrites(t *testing.T) { … }
func TestCapWithPreallocatedSlice(t *testing.T) { … }
func TestCapWithSliceAndWrittenData(t *testing.T) { … }
func TestNil(t *testing.T) { … }
func TestReadFrom(t *testing.T) { … }
type panicReader …
func (r panicReader) Read(p []byte) (int, error) { … }
func TestReadFromPanicReader(t *testing.T) { … }
func TestReadFromNegativeReader(t *testing.T) { … }
func TestWriteTo(t *testing.T) { … }
func TestWriteAppend(t *testing.T) { … }
func TestRuneIO(t *testing.T) { … }
func TestWriteInvalidRune(t *testing.T) { … }
func TestNext(t *testing.T) { … }
var readBytesTests …
func TestReadBytes(t *testing.T) { … }
func TestReadString(t *testing.T) { … }
func BenchmarkReadString(b *testing.B) { … }
func TestGrow(t *testing.T) { … }
func TestGrowOverflow(t *testing.T) { … }
func TestReadEmptyAtEOF(t *testing.T) { … }
func TestUnreadByte(t *testing.T) { … }
func TestBufferGrowth(t *testing.T) { … }
func BenchmarkWriteByte(b *testing.B) { … }
func BenchmarkWriteRune(b *testing.B) { … }
func BenchmarkBufferNotEmptyWriteRead(b *testing.B) { … }
func BenchmarkBufferFullSmallReads(b *testing.B) { … }
func BenchmarkBufferWriteBlock(b *testing.B) { … }
func BenchmarkBufferAppendNoCopy(b *testing.B) { … }