On 2013/09/24 04:16:25, r wrote:
> Please let's just bring this to ground in the form I suggested.
> -rob
Okay. Thanks for your patience with me. I hope the 10th one's the charm.
---
Usage of 'go tool cover':
Given a coverage profile produced by 'go test':
go test -coverprofile=c.out
Open a web browser displaying annotated source code:
go tool cover -html=c.out
Write out an HTML file instead of launching a web browser:
go tool cover -html=c.out -o coverage.html
Display coverage percentages to stdout for each function:
go tool cover -func=c.out
Or to generate modified source code with coverage annotations (advanced
usage):
go tool cover -mode=set -var=CoverageVariableName program.go
Flags:
-func="": output coverage profile information for each function
-html="": generate HTML representation of coverage profile
-mode="": coverage mode: set, count, atomic
-o="": file for output; default: stdout
-var="GoCover": name of coverage variable to generate
Only one of -html, -func, or -mode may be set.
https://codereview.appspot.com/13532052/