go/src
Rob Pike f718036217 cmd/go: fix bad error message in coverage for package without non-test files
Was checking for nil map; must check for empty map instead.

Fixes #6065

Before:

go test -cover
# testmain
/var/folders/00/013l0000h01000cxqpysvccm0004fc/T/go-build233480051/_/Users/r/issue/_test/_testmain.go:11: imported and not used: "_/Users/r/issue"
FAIL	_/Users/r/issue [build failed]

Now:

go test -cover
testing: warning: no tests to run
PASS
coverage: 0.0% of statements
ok  	_/Users/r/issue	0.021s

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/12916043
2013-08-15 10:36:46 +10:00
..
cmd cmd/go: fix bad error message in coverage for package without non-test files 2013-08-15 10:36:46 +10:00
lib9 libmach,lib9: override unused parameter warnings (fixes windows build) 2013-07-20 12:43:50 +10:00
libbio libbio: add casts to remove -Wconversion warnings 2013-08-03 11:36:47 -07:00
libmach libmach: support more 386/amd64 instructions 2013-07-20 00:38:26 -07:00
pkg time: handle GMT possibly with offset 2013-08-15 10:10:49 +10:00
Make.dist
all.bash
all.bat all.bat,make.bat,run.bat: make these work even when directory has space in it 2013-03-25 12:13:34 +11:00
all.rc
clean.bash
clean.bat
clean.rc
make.bash cmd/dist, make.bash: pass -mmacosx-version-min=10.6 to gcc on Darwin 2013-04-16 13:30:52 -07:00
make.bat cmd/dist: fix windows build. 2013-08-02 14:29:04 -07:00
make.rc build: fix make.rc on Plan 9 2013-05-24 13:55:19 -07:00
race.bash
race.bat
run.bash runtime.cmd/ld: Add ARM external linking and implement -shared in terms of external linking 2013-08-14 15:38:54 +00:00
run.bat cmd/api: eliminate duplicate package import work 2013-08-09 18:44:00 -04:00
run.rc build: remove builder from test suite (fix build) 2013-08-01 13:49:00 +10:00
sudo.bash cmd/cov: delete 2013-05-24 11:06:06 -07:00