summaryrefslogtreecommitdiff
path: root/src/pkg/bufio/bufio_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-4/+130
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-36/+187
2010-06-02bufio: change ReadSlice to match descriptionRuss Cox1-0/+12
On error, ReadSlice is defined to return the available data and advance past that data, but it was not behaving that way for err == ErrBufferFull, making it harder for callers to handle well. R=r CC=golang-dev http://codereview.appspot.com/1480041
2010-03-05bufio: WriteRuneRob Pike1-0/+30
also fix a printing error in the test for bytes.Buffer R=golang-dev CC=golang-dev http://codereview.appspot.com/240042
2010-02-25strings: delete Runes, BytesRuss Cox1-1/+1
gofmt -w -r 'strings.Bytes(a) -> []byte(a)' src/cmd src/pkg test/bench gofmt -w -r 'strings.Runes(a) -> []int(a)' src/cmd src/pkg test/bench delete unused imports R=r CC=golang-dev http://codereview.appspot.com/224062
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-104/+104
parsing and printing to new syntax. Use -oldparser to parse the old syntax, use -oldprinter to print the old syntax. 2) Change default gofmt formatting settings to use tabs for indentation only and to use spaces for alignment. This will make the code alignment insensitive to an editor's tabwidth. Use -spaces=false to use tabs for alignment. 3) Manually changed src/exp/parser/parser_test.go so that it doesn't try to parse the parser's source files using the old syntax (they have new syntax now). 4) gofmt -w src misc test/bench 1st set of files. R=rsc CC=agl, golang-dev, iant, ken2, r http://codereview.appspot.com/180047
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-2/+2
rsc's algorithm - applied gofmt -w misc src - partial CL (remaining files in other CLs) R=rsc, r http://go/go-review/1024040
2009-11-09remove semis after statements in one-statement statement listsRobert Griesemer1-34/+34
R=rsc, r http://go/go-review/1025029
2009-11-04gofmt-ify bufioRobert Griesemer1-57/+59
R=rsc http://go/go-review/1018049
2009-11-04fix bufio test caseRobert Griesemer1-1/+1
R=rsc http://go/go-review/1018038
2009-09-21move strings.Buffer into bytesRob Pike1-4/+4
delete strings.Buffer add a test for a bug not caught before (mustn't install zero-length blocks) R=rsc DELTA=987 (289 added, 587 deleted, 111 changed) OCL=34850 CL=34850
2009-09-21step 2 of the great buffer shift.Rob Pike1-4/+4
make strings.Buffer handle strings and bytes with comparable efficiency. if ok, next step will be to move this code to bytes.Buffer and terminate strings.Buffer's short happy life. R=rsc DELTA=292 (212 added, 0 deleted, 80 changed) OCL=34837 CL=34849
2009-09-17use buf.String() instead of string(buf.Bytes())Rob Pike1-6/+5
use strings.Buffer instead of bytes.Buffer in some places R=rsc DELTA=40 (0 added, 3 deleted, 37 changed) OCL=34770 CL=34775
2009-09-16rename bytes.Buffer.Data() to bytes.Buffer.Bytes()Rob Pike1-3/+3
R=rsc DELTA=152 (6 added, 0 deleted, 146 changed) OCL=34695 CL=34701
2009-09-15more "declared and not used".Russ Cox1-4/+4
the last round omitted := range and only checked 1 out of N vars in a multi-var := R=r OCL=34624 CL=34638
2009-08-27remove Line in bufio.ReadLine(Bytes|Slice|String)Russ Cox1-2/+2
also drop bool arg from ReadString R=r DELTA=45 (13 added, 1 deleted, 31 changed) OCL=33923 CL=33960
2009-08-26fix bufio bugs involving readers that return os.EOF withRuss Cox1-0/+1
the last bit of data. add a new iotest.DataErrReader for tests R=r DELTA=93 (41 added, 31 deleted, 21 changed) OCL=33897 CL=33915
2009-08-20naming cleanup.Russ Cox1-4/+4
gzip.GzipInflater -> gzip.Inflater gzip.NewGzipInflater -> gzip.NewInflater zlib.NewZlibInflater -> zlib.NewInflater io.ByteReader deleted in favor of bytes.Buffer io.NewByteReader -> bytes.NewBuffer R=r DELTA=52 (3 added, 0 deleted, 49 changed) OCL=33589 CL=33592
2009-08-12convert non-low-level non-google pkg codeRuss Cox1-2/+1
to whole-package compilation. R=r OCL=33070 CL=33101
2009-08-06- bufio.ReadRune fix for empty reads w/o errorsRobert Griesemer1-0/+56
- added testcases R=rsc DELTA=61 (56 added, 2 deleted, 3 changed) OCL=32831 CL=32834
2009-08-03WriteStringRob Pike1-0/+22
R=rsc DELTA=41 (41 added, 0 deleted, 0 changed) OCL=32692 CL=32697
2009-06-29io.StringBytes -> strings.BytesRuss Cox1-6/+8
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872
2009-06-22introduce os.EOF and io.ErrUnexpectedEOF.Russ Cox1-3/+3
remove io.ErrEOF. rename io.FullRead to io.ReadFull, to match ReadAtLeast and ReadAll. remove io.FullReader, because it is now unused. R=r DELTA=295 (88 added, 105 deleted, 102 changed) OCL=30544 CL=30588
2009-06-09mv src/lib to src/pkgRob Pike1-0/+298
tests: all.bash passes, gobuild still works, godoc still works. R=rsc OCL=30096 CL=30102