1
0
mirror of https://github.com/golang/go synced 2024-11-05 19:56:11 -07:00
go/cmd/cover
Bryan C. Mills df13fa7beb all: do not write to testdata directories
I got tired of spurious 'git' diffs while a 'go test' was running, so
I fixed the test that produced the diffs. (We need to do that anyway
in order to run them in the module cache, plus it's just good hygiene
not to have tests interfering with each other's sources.)

Tested using:

	$ chmod -R ugo-w . && go test ./...; chmod -R u+w .

Updates golang/go#28387

Change-Id: Ie17e31aecf0e3cb022df5503d7c443000366a5c6
Reviewed-on: https://go-review.googlesource.com/c/tools/+/192577
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-08-30 17:05:20 +00:00
..
testdata cmd/cover: cover funcs in if, for, switch clauses 2015-03-31 19:20:52 +00:00
cover_test.go all: do not write to testdata directories 2019-08-30 17:05:20 +00:00
cover.go all: address vet issues, fix print calls 2016-03-27 20:36:34 +00:00
doc.go cmd/cover: document that it is moving to the standard repository 2015-05-01 00:38:25 +00:00
func.go go.tools: use golang.org/x/... import paths 2014-11-10 08:50:40 +11:00
html.go cmd/cover: check os.Create error im html output 2017-01-08 00:00:17 +00:00
README cmd/cover: document that it is moving to the standard repository 2015-05-01 00:38:25 +00:00

NOTE: For Go releases 1.5 and later, this tool lives in the
standard repository. The code here is not maintained.