From 5b6d40041f593663c52f574f69d7d6bfc51e9ff5 Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 3 Feb 2009 14:16:22 -0800 Subject: bufio: * avoid large copies * NewBufRead, NewBufWrite never fail * add BufReadWrite io: * add io.Close http, google/net/rpc: * add, use http.Conn.Hijack R=r DELTA=416 (202 added, 123 deleted, 91 changed) OCL=24153 CL=24238 --- src/lib/bufio_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/bufio_test.go') diff --git a/src/lib/bufio_test.go b/src/lib/bufio_test.go index 17fb379cb..9ffd6cbfd 100644 --- a/src/lib/bufio_test.go +++ b/src/lib/bufio_test.go @@ -174,12 +174,12 @@ var bufsizes = []int { } func TestBufReadSimple(t *testing.T) { - b, e := NewBufRead(newByteReader(io.StringBytes("hello world"))); + b := NewBufRead(newByteReader(io.StringBytes("hello world"))); if s := readBytes(b); s != "hello world" { t.Errorf("simple hello world test failed: got %q", s); } - b, e = NewBufRead(newRot13Reader(newByteReader(io.StringBytes("hello world")))); + b = NewBufRead(newRot13Reader(newByteReader(io.StringBytes("hello world")))); if s := readBytes(b); s != "uryyb jbeyq" { t.Error("rot13 hello world test failed: got %q", s); } -- cgit v1.2.3