1
0
mirror of https://github.com/golang/go synced 2024-10-04 13:21:22 -06:00
go/src
Robert Griesemer fe62a9ee87 crypto/tls: remove unused variable in benchmark code
This fixes `go test go/types`.

https://golang.org/cl/23487/ introduced this code which contains
two unused variables (declared and assigned to, but never read).
cmd/compile doesn't report the error due open issue #8560 (the
variables are assigned to in a closure), but go/types does. The
build bot only runs go/types tests in -short mode (which doesn't
typecheck the std lib), hence this doesn't show up on the dashboard
either.

We cannot call b.Fatal and friends in the goroutine. Communicating
the error to the invoking function requires a channel or a mutex.
Unless the channel/sycnhronized variable is tested in each iteration
that follows, the iteration blocks if there's a failure. Testing in
each iteration may affect benchmark times.

One could use a time-out but that time depends on the underlying system.
Panicking seems good enough in this unlikely case; better than hanging
or affecting benchmark times.

Change-Id: Idce1172da8058e580fa3b3e398825b0eb4316325
Reviewed-on: https://go-review.googlesource.com/23528
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
2016-06-01 00:06:09 +00:00
..
archive archive/zip: use HTTPS for documentation link 2016-05-14 17:27:44 +00:00
bufio all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
builtin
bytes all: use SeekStart, SeekCurrent, SeekEnd 2016-05-06 00:10:41 +00:00
cmd cmd/compile: test non-constant shifts 2016-06-01 00:06:00 +00:00
compress compress/flate: use seperate const block for exported constants 2016-05-31 18:28:44 +00:00
container all: fixed a handful of typos 2016-05-24 21:18:03 +00:00
context context: make DeadlineExceeded have a Timeout method 2016-05-19 23:09:16 +00:00
crypto crypto/tls: remove unused variable in benchmark code 2016-06-01 00:06:09 +00:00
database/sql database/sql: clone data for named []byte types 2016-04-30 18:40:36 +00:00
debug debug/gosym: parse remote packages correctly 2016-05-17 22:16:38 +00:00
encoding encoding/json: improve Decode example 2016-05-26 22:40:14 +00:00
errors
expvar expvar: slightly expand documentation for Var's String method 2016-05-19 04:20:47 +00:00
flag flag: recognize "0s" as the zero value for a flag.Duration 2016-05-31 23:45:47 +00:00
fmt fmt: remove extra space in too few arguments example 2016-05-12 20:45:48 +00:00
go runtime/pprof, cmd/pprof: fix profiling for PIE 2016-05-31 13:02:09 +00:00
hash hash/crc64: Use slicing by 8. 2016-05-18 14:38:04 +00:00
html html/template: mention risks of the CSS, HTML, JS, etc. types 2016-05-18 18:31:18 +00:00
image image/gif: accept an out-of-bounds transparent color index. 2016-04-29 00:01:22 +00:00
index/suffixarray
internal net, net/http: don't trace DNS dials 2016-05-14 00:14:25 +00:00
io io: use SeekStart, SeekCurrent, and SeekEnd in io.Seeker documentation 2016-05-29 06:52:45 +00:00
log
math math/big: using Run for some more benchmarks 2016-05-26 19:14:13 +00:00
mime mime/multipart: sort header keys to ensure reproducible output 2016-05-16 22:55:16 +00:00
net net: don't call forceCloseSockets in non-TestMain functions 2016-05-30 03:30:14 +00:00
os os/exec: remove Cmd.RunContext and Cmd.WaitContext, add CommandContext 2016-05-20 21:19:32 +00:00
path path/filepath: prevent infinite recursion on Windows on UNC input 2016-05-31 00:11:32 +00:00
reflect runtime: tell race detector about reflectOffs.lock 2016-05-26 14:43:27 +00:00
regexp regexp/syntax: clarify that \Z means Perl's \Z 2016-05-18 04:43:32 +00:00
runtime runtime: fix restoring PC in ARM version of cgocallback_gofunc 2016-05-31 22:14:39 +00:00
sort
strconv
strings strings: fix and reenable amd64 Index for 17-31 byte strings 2016-05-27 22:57:32 +00:00
sync sync: document that RWMutex read locks may not be held recursively 2016-05-31 00:22:56 +00:00
syscall syscall: plan9 - mark gbit16 as go:nosplit 2016-05-31 04:53:19 +00:00
testing testing: added package doc for sub(tests/benchmarks) 2016-05-25 17:37:28 +00:00
text text/scanner: better error message if no error handler is installed 2016-05-25 15:44:28 +00:00
time time: run genzabbrs.go with new source data 2016-05-23 18:14:21 +00:00
unicode unicode: improve SimpleFold performance for ascii 2016-04-26 21:59:50 +00:00
unsafe
vendor/golang.org/x/net net/http: update bundled http2 2016-05-19 03:51:11 +00:00
all.bash
all.bat
all.rc
androidtest.bash all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
bootstrap.bash all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash cmd/compile: switch to compact export format by default 2016-04-27 16:59:55 +00:00
iostest.bash
make.bash build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
make.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
Make.dist
make.rc build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
naclmake.bash
nacltest.bash all: make copyright headers consistent with one space after period 2016-05-02 13:43:18 +00:00
race.bash
race.bat
run.bash build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
run.bat build: unset GOBIN during build 2016-05-19 18:40:53 +00:00
run.rc build: unset GOBIN during build 2016-05-19 18:40:53 +00:00