Coverage lines
Simple tool to get covered and total lines which might be useful if you're trying to calculate total coverage for multiple projects, some of which are not written in Go.
Please see example for more context.
Installation
Same as for any other go binary:
go get -u github.com/yb172/coverage-lines
Usage
First run test with -coverprofile
option enabled:
go test ./... -coverprofile=cover.out
And then run coverage-lines
:
coverage-lines cover.out
It will output two numbers: number of covered statements and total number of statements