1
0
mirror of https://github.com/golang/go synced 2024-11-18 13:54:59 -07:00
go/src
Rob Pike be48aa3f3a cmd/cover: handle gotos
If a labeled statement is the target of a goto, we must treat it as the
boundary of a new basic block, but only if it is not already the boundary
of a basic block such as a labeled for loop.

Fixes #16624

Now reports 100% coverage for the test in the issue.

Change-Id: If118bb6ff53a96c738e169d92c03cb3ce97bad0e
Reviewed-on: https://go-review.googlesource.com/30977
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
2016-10-14 23:38:29 +00:00
..
archive archive/tar: reduce allocations in formatOctal 2016-10-12 21:27:51 +00:00
bufio
builtin
bytes
cmd cmd/cover: handle gotos 2016-10-14 23:38:29 +00:00
compress compress/gzip: document Reader.Read 2016-10-09 00:22:59 +00:00
container
context context: make DeadlineExceeded implement net.Error 2016-10-05 15:53:04 +00:00
crypto crypto/{aes,cipher}: fix panic in CBC on s390x when src length is 0 2016-10-13 21:42:23 +00:00
database/sql database/sql: fixup remaining driver call to use context 2016-10-04 17:22:14 +00:00
debug debug/elf: add sparc64 relocations 2016-10-11 21:52:37 +00:00
encoding encoding/xml: split attribute marshaling into its own method 2016-10-13 17:47:44 +00:00
errors
expvar expvar: add Value methods 2016-10-13 21:39:03 +00:00
flag
fmt fmt: document and adjust Scanf space handling to eliminate a few paradoxes 2016-10-07 03:46:50 +00:00
go go/internal/gcimporter: set Pos attribute of decoded types.Objects 2016-10-13 19:31:09 +00:00
hash
html
image image/gif: check handling of truncated GIF files 2016-10-05 04:28:45 +00:00
index/suffixarray
internal os: use FindFirstFile when GetFileAttributesEx fails in Stat 2016-10-14 03:58:15 +00:00
io io: simplified a small part of copyBuffer 2016-10-09 22:50:12 +00:00
log
math math/big: move ProbablyPrime into its own source file 2016-10-11 16:16:17 +00:00
mime net/http: multipart ReadForm close file after copy 2016-10-05 16:35:03 +00:00
net net/http: allow Handlers to test Hijacked conn without spamming error log 2016-10-13 21:55:38 +00:00
os os: use FindFirstFile when GetFileAttributesEx fails in Stat 2016-10-14 03:58:15 +00:00
path path/filepath: add a test case for EvalSymlinks error 2016-10-12 14:01:03 +00:00
plugin
reflect reflect: ignore struct tags when converting structs 2016-10-04 17:15:59 +00:00
regexp regexp: remove dead code 2016-10-04 14:49:35 +00:00
runtime cmd/compile,runtime: redo how map assignments work 2016-10-12 20:41:23 +00:00
sort sort: fix a slice benchmark not using the stable variant, add another 2016-10-05 14:43:23 +00:00
strconv
strings
sync
syscall syscall: update darwin/amd64 for timespec change 2016-10-12 23:51:42 +00:00
testing
text
time time: document that calendrical calculations are with no leap seconds 2016-10-06 19:43:14 +00:00
unicode unicode: change SimpleFold to handle invalid runes 2016-10-12 18:30:29 +00:00
unsafe
vendor/golang_org/x vendor/golang_org/x/crypto/curve25519: new package 2016-10-12 17:03:55 +00:00
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash
iostest.bash
make.bash cmd/dist, cmd/go: add environment variable override for pkg-config 2016-10-03 18:08:01 +00:00
make.bat
Make.dist
make.rc
naclmake.bash
nacltest.bash
race.bash
race.bat
run.bash
run.bat
run.rc