1
0
mirror of https://github.com/golang/go synced 2024-11-06 23:26:12 -07:00
go/src/testing
Brad Fitzpatrick 48db2c01b4 all: use strings.Builder instead of bytes.Buffer where appropriate
I grepped for "bytes.Buffer" and "buf.String" and mostly ignored test
files. I skipped a few on purpose and probably missed a few others,
but otherwise I think this should be most of them.

Updates #18990

Change-Id: I5a6ae4296b87b416d8da02d7bfaf981d8cc14774
Reviewed-on: https://go-review.googlesource.com/102479
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
2018-03-26 23:05:53 +00:00
..
internal/testdeps testing: do not crash when m.Run is called twice and -test.testlogfile is used 2017-12-14 14:57:01 +00:00
iotest testing/iotest: fix NewReadLogger documentation typo 2017-10-19 15:59:21 +00:00
quick doc: mention testing/quick RNG seeding change in Go 1.9 notes 2017-06-27 22:41:49 +00:00
allocs_test.go
allocs.go
benchmark_test.go
benchmark.go testing: remove claim that b.Run is safe for concurrent use 2017-12-01 00:24:53 +00:00
cover.go
example.go all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00
export_test.go
helper_test.go
helperfuncs_test.go
match_test.go
match.go
sub_test.go testing: gracefully handle subtest failing parent’s T 2018-03-01 10:17:22 +00:00
testing_test.go
testing.go all: use strings.Builder instead of bytes.Buffer where appropriate 2018-03-26 23:05:53 +00:00