From: Rob Pike Date: Fri, 21 Jun 2013 21:19:08 +0000 (-0700) Subject: testing: include cover mode in cover profile X-Git-Tag: go1.2rc2~1204 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=279c48444aaf0f49a3c2be539fc6f3ca888e9deb;p=gostls13.git testing: include cover mode in cover profile R=adg, rsc CC=golang-dev https://golang.org/cl/10392049 --- diff --git a/src/pkg/testing/cover.go b/src/pkg/testing/cover.go index 24198706ac..4136becbfc 100644 --- a/src/pkg/testing/cover.go +++ b/src/pkg/testing/cover.go @@ -50,6 +50,7 @@ func coverReport() { if *coverProfile != "" { f, err = os.Create(toOutputDir(*coverProfile)) mustBeNil(err) + fmt.Fprintf(f, "mode: %s\n", *coverMode) defer func() { mustBeNil(f.Close()) }() }