summaryrefslogtreecommitdiff
path: root/src/pkg/bytes/buffer_test.go
AgeCommit message (Collapse)AuthorFilesLines
2011-09-13Imported Upstream version 60upstream/60Ondřej Surý1-0/+376
2011-09-13Imported Upstream version 60Ondřej Surý1-393/+0
2011-04-26Imported Upstream version 2011.04.13upstream/2011.04.13Ondřej Surý1-2/+10
2011-02-18Imported Upstream version 2011.02.15upstream/2011.02.15Ondřej Surý1-12/+23
2011-02-14Imported Upstream version 2011-02-01.1upstream/2011-02-01.1Ondřej Surý1-1/+26
2011-01-17Imported Upstream version 2011.01.12upstream/2011.01.12Ondřej Surý1-23/+38
2010-04-26bytes: add Next method to Buffer, simplify Read.Russ Cox1-0/+35
R=r CC=golang-dev http://codereview.appspot.com/980043
2010-03-05bufio: WriteRuneRob Pike1-1/+1
also fix a printing error in the test for bytes.Buffer R=golang-dev CC=golang-dev http://codereview.appspot.com/240042
2010-03-05Add ReadRune and WriteRune to bytes.BufferRob Pike1-0/+35
The comments mention bufio's WriteRune, which should come next. R=rsc CC=golang-dev http://codereview.appspot.com/245041
2009-12-15 1) Change default gofmt default settings forRobert Griesemer1-85/+85
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-12-03Add ReadFrom and WriteTo methods to bytes.Buffer, to enable i/o without ↵Rob Pike1-0/+22
buffer allocation. Use them in Copy and Copyn. Speed up ReadFile by using ReadFrom and avoiding Copy altogether (a minor win). R=rsc, gri CC=golang-dev http://codereview.appspot.com/166041
2009-11-20gofmt -r 'α[β:len(α)] -> α[β:]' -w src/cmd src/pkgRuss Cox1-2/+2
R=r, gri CC=golang-dev http://codereview.appspot.com/156115
2009-11-09- replaced gofmt expression formatting algorithm withRobert Griesemer1-15/+15
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-20/+20
R=rsc, r http://go/go-review/1025029
2009-10-31return "<nil>" when calling String() on a nil bytes.Buffer.Rob Pike1-0/+8
R=rsc CC=go-dev http://go/go-review/1016005
2009-10-27files that are okay from the last gofmt roundRuss Cox1-3/+3
R=gri http://go/go-review/1015011
2009-10-08more lgtm files from gofmtRuss Cox1-1/+1
R=gri OCL=35485 CL=35488
2009-10-06another round of gofmt applicationsRuss Cox1-21/+21
R=gri DELTA=900 (106 added, 31 deleted, 763 changed) OCL=35384 CL=35396
2009-09-21move strings.Buffer into bytesRob Pike1-22/+85
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-16rename bytes.Buffer.Data() to bytes.Buffer.Bytes()Rob Pike1-4/+4
R=rsc DELTA=152 (6 added, 0 deleted, 146 changed) OCL=34695 CL=34701
2009-09-15more "declared and not used".Russ Cox1-1/+1
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-12convert low-level (used by testing) packages toRuss Cox1-2/+2
whole-package compilation. new Makefiles, tests now in separate package bytes flag fmt io math once os reflect strconv sync time utf8 delete import "xxx" in package xxx. inside package xxx, xxx is not declared anymore so s/xxx.//g delete file and package level forward declarations. note the new internal_test.go and sync and strconv to provide public access to internals during testing. the installed version of the package omits that file and thus does not open the internals to all clients. R=r OCL=33065 CL=33097
2009-06-29delete io.ByteBufferRuss Cox1-9/+9
R=r DELTA=25 (0 added, 15 deleted, 10 changed) OCL=30892 CL=30892
2009-06-29io.StringBytes -> strings.BytesRuss Cox1-0/+171
io.ByteBuffer -> bytes.Buffer left io.ByteBuffer stub around for now, for protocol compiler. R=r OCL=30861 CL=30872